Get email from payload in nestJS API

Hi,
I am using express-oauth2-jwt-bearer to retrieve the auth details.

Is there an example of how to add the logged inn users email to the auth object.

Many thanks

Hi @rationem,

Thanks for reaching out to the Auth0 Community!

Yes, most definitely! You will need to append the user’s email address as a custom claim to the access token using a Post Login Action.

I recommend going over our FAQ below for more instructions:

Please let me know if you have any questions.

Thanks,
Rueben

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.