Adding custom claim via post login action is not working

I have done same implementation as mentioned in below link Adding email to access token

I can see the email in moniotoring logs getting printed properly but in access token it is not getting populated.

Hi @Anup, Thanks for reaching out to Auth0 Community.

Are you passing the audience parameter in the authorize call as Auth0 API? If so, then the name of the claim needs to be a namespaced claim as highlighted in the document.

1 Like

Hey team! :waving_hand:

Since this topic touches Auth0 Actions, quick heads-up that we’re hosting an Ask Me Anything dedicated to Actions with Gaston Danilo Asis Sanchez, Senior Technical Product Manager. We’ll cover practical usage, new capabilities like Transaction Metadata and Actions Types, plus a peek at what’s next. :sparkles:

  • Submit questions now through Aug 26 :writing_hand:
  • Get detailed written answers live on Aug 27, 9–11 AM PT :speech_balloon:

Earn community points + a badge :trophy:. If you’re exploring how Actions can streamline your auth flows, this is a great time to get direct guidance from the team.
Join the AMA & drop your questions here: August 27 Auth0 Community Ask Me Anything: Actions

Dawid