# Get access token silently react sdk

**URL:** <https://community.auth0.com/t/get-access-token-silently-react-sdk/61196>\
**Category:** Get Help\
**Created:** [April 15, 2021, 8:01pm UTC](https://community.auth0.com/t/get-access-token-silently-react-sdk/61196 "2021-04-15T20:01:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pandeysumit832](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pandeysumit832/32/24787_2.png) [@pandeysumit832](https://community.auth0.com/u/pandeysumit832)\
**Post date:** [April 15, 2021, 8:01pm UTC](https://community.auth0.com/t/get-access-token-silently-react-sdk/61196/1 "2021-04-15T20:01:38Z")

</div>

What does getAccessTokenSilenty does?  
It uses the “[mydomain.auth0.com/token/oauth](http://mydomain.auth0.com/token/oauth)” to call the api? Or it checks for current session

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 15, 2021, 10:49pm UTC](https://community.auth0.com/t/get-access-token-silently-react-sdk/61196/3 "2021-04-15T22:49:51Z")

</div>

Hi @pandeysumit832,

It is described [here](https://auth0.com/docs/libraries/auth0-single-page-app-sdk#get-access-token-with-no-interaction).

In short, it sees if a valid access token is stored in memory, otherwise it requests a new one from the Auth0 server. There are some subtle differences on how it gets a new token depending on whether or not you are using refresh token rotation.

---

<div class="post-metadata">

**Author:** ![pandeysumit832](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pandeysumit832/32/24787_2.png) [@pandeysumit832](https://community.auth0.com/u/pandeysumit832)\
**Post date:** [April 16, 2021, 5:05am UTC](https://community.auth0.com/t/get-access-token-silently-react-sdk/61196/4 "2021-04-16T05:05:29Z")

</div>

Since I m using auth0 js package which give me a function checkSession and when I am trying to hit my custom api to get token it throws an error saying consent required I have also check allow skipping user consent

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 16, 2021, 3:48pm UTC](https://community.auth0.com/t/get-access-token-silently-react-sdk/61196/5 "2021-04-16T15:48:34Z")

</div>

Check session creates an authentication request silently in an iframe. If you are seeing consent required it is because you have you app registered as a third party client, you are requiring consent (it sounds like it is not this), or you are developing on localhost.

---

<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:** [June 1, 2021, 5:08pm UTC](https://community.auth0.com/t/get-access-token-silently-react-sdk/61196/6 "2021-06-01T17:08:12Z")

</div>

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