1 Answer
- Newest
- Most votes
- Most comments
0
If you're using a Lambda authorizer, you can choose what information to pass to the back end using the context key. That way you can be very specific about the information taken from the inbound call and supply that to the back end.
In your code, where you would normally do something like return {'isAuthorized':True} you could instead do return {'isAuthorized':True, 'context':{'cognitoUsername':'yourDataHere', 'email':'emailDataHere'}}
Relevant content
asked 2 years ago
