# Auth0 Sample react

**URL:** <https://community.auth0.com/t/auth0-sample-react/99525>\
**Category:** Get Help\
**Tags:** sdks-quickstarts, auth0-react\
**Created:** [February 2, 2023, 4:02am UTC](https://community.auth0.com/t/auth0-sample-react/99525 "2023-02-02T04:02:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ysharat](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ysharat/32/44251_2.png) [@ysharat](https://community.auth0.com/u/ysharat)\
**Post date:** [February 2, 2023, 4:02am UTC](https://community.auth0.com/t/auth0-sample-react/99525/1 "2023-02-02T04:02:43Z")

</div>

Hi there,  
am evaluating the react sample , during the login process, there have been two calls made one is authorize where i received the code, and second was token call where I received access\_token rather jwt thats fine. The question I had was since react app received access\_token how does the app show on the profile page the name and email\_id? Because access\_token is an opaque one and was wondering was there any call made again which i dont see in the inspect beside the authorize and token call to retrive the user profile inof that is name and emailID. Pls clarify how does the app got the user details displayed on the front end.

thanks

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [February 7, 2023, 12:10am UTC](https://community.auth0.com/t/auth0-sample-react/99525/3 "2023-02-07T00:10:54Z")

</div>

Hello @ysharat welcome to the community!

By default, the SDK uses the scopes `openid profile email` so an ID token is returned. The auth0-react SDK decodes the ID token and stores its data in the `user` object exposed via the `useAuth0()` React hook.

> <https://github.com/auth0/auth0-react/blob/be9337d4a25b91f2c8da232bf6f07b6a419b84f3/MIGRATION_GUIDE.md#changes-to-default-scopes>

Hope this helps to clarify!

---

<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 21, 2023, 12:11am UTC](https://community.auth0.com/t/auth0-sample-react/99525/4 "2023-02-21T00:11:00Z")

</div>

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