I'm creating a small API using Amazon's AWS Cognito as well as Lambda and a Facebook Login.
When a user / my App sends an API request to Lambda, Cognito does a good job and authenticates the user with it's Facebook-Login on the fly. My point is that as far I can see, Cognito isn't handing on any information about the user (like an ID or the Fb access token), except I'm providing it in my request of course.
In my case, I'd like to get the users Facebook access token in AWS Lambda to do some stuff with it.
Does anyone know how to get any information of the current user, which is hitting the API (like the Fb access token) or is Cognito a closed system in this way?