# Retrive ID Token from Auth0-React

**URL:** <https://community.auth0.com/t/retrive-id-token-from-auth0-react/184704>\
**Category:** Get Help\
**Tags:** classic-universal-login-experience, login-experience\
**Created:** [March 30, 2025, 8:44am UTC](https://community.auth0.com/t/retrive-id-token-from-auth0-react/184704 "2025-03-30T08:44:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![badpiggie](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/badpiggie/32/31836_2.png) [@badpiggie](https://community.auth0.com/u/badpiggie)\
**Post date:** [March 30, 2025, 8:44am UTC](https://community.auth0.com/t/retrive-id-token-from-auth0-react/184704/1 "2025-03-30T08:44:45Z")

</div>

I have working on an application where we use Auth0 to handle complete user authentication. In this case, We do not consume any Auth0 API onbehalf of the user but just authentication. Once the user successfully signed-in, we need to fetch IdToken and append it with each backend API request. Since the IdToken is enough for authentication, We do not need the AccessToken.

The problem is, I can get AccessToken using `getAccessTokenSilently()` but there is no such method to get IdToken. Is there any workaround?

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [March 31, 2025, 1:55pm UTC](https://community.auth0.com/t/retrive-id-token-from-auth0-react/184704/3 "2025-03-31T13:55:59Z")

</div>

Hi @badpiggie,

Welcome to the Auth0 Community.

The `getSession()` method provides you with the session data which contains a `TokenSet` from which you can retrieve both, the access token and the id token.

If you have any other question feel free to reach out.

Have a good one,  
Vlad

---

<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:** [April 14, 2025, 1:56pm UTC](https://community.auth0.com/t/retrive-id-token-from-auth0-react/184704/4 "2025-04-14T13:56:16Z")

</div>

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