When adding authentication to an AWS Lambda function using a Custom Authorizer, the authorizer will create an IAM policy with a principal ID that according to this example, the principal ID should be set to the Auth0
If I am not wrong, the only information about the authenticated user that is passed through to the target Lambda function is this principal ID.
My question is: inside the Lambda function, how can I obtain the Twitter
access token secret values for the authenticated user – if the user has authenticated and/or linked his Twitter account – so that my Lambda function can post tweets on behalf of the user?
Thanks in advance.