Our redwood project uses a custom authentication mechanism using bearer tokens. The project is deployed on AWS Lambda through a serverless deploy.
We’ve gotten custom authentication working locally, but authentication fails on the lambda deploy since getCurrentUser isn’t called. CloudWatch logs confirm that the getCurrentUser function was never called during the authentication flow.
Any way we can debug this to resolve this issue? Not sure if we’re missing anything
@dthyresson : yep, we had already tried that. We finally just got it working and turns out it had something to do with auth-provider header being in lower case. We initially had the first letters capitalized.
Fixed now, problem solved. Thanks so much for pointing us in the right direction. Much appreciated!