Hi guys,
Sorry for being a complete noob in serverless+lambda here
I am hitting a wall and cannot work out if it’s possible to access the claim or principalid from the authorizer.
I am using AWS +Nodejs combo, the auth function example works flawlessly and now i am trying to get the Userid back from the Auth0 token (which should have already be verified and parsed through auth function).
Isn’t that suppose to be as simple as using context.authorizer.principalId in AWS?
Of course, I suppose I could use jwt function to parse the header again but it feels yucky to have to do that for every function accessing the db which use the userid as look up value. :-/
Many thanks,
San