Access Authenticated Users Email Address in Lambda Function

Hi,

I want to access the authenticated users email address in a AWS Lambda function. How do I enable cognito user details to be passed into the event object?

e.g. let email = event.requestContext.authorizer?.claims?.email;

Can anybody help to explain how using the SST Guide I would be able to access stored users attributes in my lambda functions? Please