2 Answers
- Newest
- Most votes
- Most comments
0
Are you using the access token or ID token in the authorisation header? IIRC, only the ID token contains the user's email address. If the email claim isn't included in the token's claims, the authoriser can't supply it to your Lambda. You can check the claims in your token by [decoding](https://jwt.io/) it.
answered 5 years ago
0
Ah, thanks. I'm using the access token. I assumed that the Authorizer would contact Cognito and get user information. Didn't realise it was all encoded in the token.
answered 5 years ago
