# User info from a Acess Token

**URL:** <https://community.auth0.com/t/user-info-from-a-acess-token/37022>\
**Category:** Get Help\
**Created:** [January 29, 2020, 12:44pm UTC](https://community.auth0.com/t/user-info-from-a-acess-token/37022 "2020-01-29T12:44:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hiltonmeyer](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hiltonmeyer/32/12814_2.png) [@hiltonmeyer](https://community.auth0.com/u/hiltonmeyer)\
**Post date:** [January 29, 2020, 12:44pm UTC](https://community.auth0.com/t/user-info-from-a-acess-token/37022/1 "2020-01-29T12:44:51Z")

</div>

I’m pretty new to Auth0 so trying to make my way around the docs but can’t seem to understand a few things. Hoping that someone can help me out. I have an API I am trying to connect to Auth0. I have managed to get an example working of a Login on the front end that sends the token to the backend API. The backend in on Node and I can validate the JWT Token using middleware. So far so good.

My question now is how would I actually use the user information on the backend using this validated token? I’ve thought about somehow sending it from the front end app but I think this wouldn’t be such a great idea security wise.

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [January 29, 2020, 3:02pm UTC](https://community.auth0.com/t/user-info-from-a-acess-token/37022/2 "2020-01-29T15:02:35Z")

</div>

Hi hiltonmeyer

I assume you have lots of information about users stored in a DB somewhere. Then it could go something like this:

On signup, get the user identifier from your user DB and store that in the Auth0 DB for the user.

Create a rule that puts your user identifier in the access token.

In your node backend, get the user identifier and use that to look up all the info you need.

This is just one approach, you have a lot of flexibility here.

John

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 29, 2020, 3:20pm UTC](https://community.auth0.com/t/user-info-from-a-acess-token/37022/3 "2020-01-29T15:20:48Z")

</div>

Thanks a lot for sharing this approach John!

---

<div class="post-metadata">

**Author:** ![hiltonmeyer](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hiltonmeyer/32/12814_2.png) [@hiltonmeyer](https://community.auth0.com/u/hiltonmeyer)\
**Post date:** [January 30, 2020, 8:56am UTC](https://community.auth0.com/t/user-info-from-a-acess-token/37022/4 "2020-01-30T08:56:24Z")

</div>

Hi John,  
Thanks for the help. So there is not real problem sending the user id in the access token?  
Could you please point me in the direction of an example or even better the docs.  
I’ve been trying to work through the docs but getting very confused.  
Appreciate the help and patience  
Hilton

---

<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:** [February 14, 2020, 8:56am UTC](https://community.auth0.com/t/user-info-from-a-acess-token/37022/5 "2020-02-14T08:56:24Z")

</div>

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