# Use email in custom claim on access token

**URL:** <https://community.auth0.com/t/use-email-in-custom-claim-on-access-token/148100>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [September 27, 2024, 2:30am UTC](https://community.auth0.com/t/use-email-in-custom-claim-on-access-token/148100 "2024-09-27T02:30:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bradbunce](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bradbunce/32/60888_2.png) [@bradbunce](https://community.auth0.com/u/bradbunce)\
**Post date:** [September 27, 2024, 2:30am UTC](https://community.auth0.com/t/use-email-in-custom-claim-on-access-token/148100/1 "2024-09-27T02:30:19Z")

</div>

Ready to post? 🔍 First, try searching for your answer.  
I am using auth0 to secure my React.js app and the Node.js API server. It’s all working great. I need to pass the user’s e-mail address in the access token to the backend so I can use the e-mail address in the API server. In React, I can see the email address of the user and use the value in the frontend where I need to. My understanding is that I can do this because I get it from the ID token of the user in the SPA. Then access to the backend is done via an access token. I do not need to control access to the backend APIs other than what the access token already does, but I need to pass the email as a custom claim in the access token so I can use it for certain functions in the backend. I just cannot find the instructions/example of how to create this custom claim. Any help appreciated, thanks!

---

<div class="post-metadata">

**Author:** ![bradbunce](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bradbunce/32/60888_2.png) [@bradbunce](https://community.auth0.com/u/bradbunce)\
**Post date:** [September 27, 2024, 2:54am UTC](https://community.auth0.com/t/use-email-in-custom-claim-on-access-token/148100/2 "2024-09-27T02:54:43Z")

</div>

I got it to work… I was able to create the custom action and use the right template to create the post-login flow. Easy, easy…

---

<div class="post-metadata">

**Author:** ![tudor.smeu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tudor.smeu/32/59767_2.png) [@tudor.smeu](https://community.auth0.com/u/tudor.smeu)\
**Post date:** [September 27, 2024, 11:52am UTC](https://community.auth0.com/t/use-email-in-custom-claim-on-access-token/148100/4 "2024-09-27T11:52:47Z")

</div>

Hi @bradbunce,

Welcome to the Auth0 Community!

Thank you for sharing your solution with the community.

If you have any additional questions please don’t hesitate to ask us.

Thanks,  
Tudor

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 11, 2024, 11:53am UTC](https://community.auth0.com/t/use-email-in-custom-claim-on-access-token/148100/5 "2024-10-11T11:53:37Z")

</div>

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