Once the user logs into Cognito, I would like a lambda function to get the current role associated with that user.
It seems like Cognito User pools or Identity pools are to be used with mobile apps, and front end dev?
What is the correct way of doing this? Code examples are always nice, but I'm more looking for a logical solution, or links to documentation.
I tried out AmazonCognitoIdentity (which was not what I was looking for) and read all(?) documentation around this matter but I'm not able to connect the dots here...