# Get jwt access token using react-sdk (getAccessTokenSilently)

**URL:** <https://community.auth0.com/t/get-jwt-access-token-using-react-sdk-getaccesstokensilently/59221>\
**Category:** Get Help\
**Tags:** react-sdk, jwt, access-token, auth0\
**Created:** [March 10, 2021, 8:48pm UTC](https://community.auth0.com/t/get-jwt-access-token-using-react-sdk-getaccesstokensilently/59221 "2021-03-10T20:48:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shu314](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shu314/32/14673_2.png) [@shu314](https://community.auth0.com/u/shu314)\
**Post date:** [March 10, 2021, 8:48pm UTC](https://community.auth0.com/t/get-jwt-access-token-using-react-sdk-getaccesstokensilently/59221/1 "2021-03-10T20:48:02Z")

</div>

I am using @auth0/auth0-react@1.3.0. I tried to get the access token in jwt format using getAccessTokenSilently but it did not work. I did also have “audience: [http://myapi.com](http://myapi.com)” as a parameter.  
How can I get the jwt token? Is it better to use the opaque token? If so, how can my server verify that opaque token?

---

<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:** [March 10, 2021, 11:17pm UTC](https://community.auth0.com/t/get-jwt-access-token-using-react-sdk-getaccesstokensilently/59221/3 "2021-03-10T23:17:21Z")

</div>

If you added a valid audience then you should return a JWT. Your audience must be an API that is registered in the dashboard. This FAQ might help.

[https://community.auth0.com/t/why-is-my-access-token-not-a-jwt-opaque-token/31028](https://community.auth0.com/t/why-is-my-access-token-not-a-jwt-opaque-token/31028)

---

<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:** [March 25, 2021, 11:18pm UTC](https://community.auth0.com/t/get-jwt-access-token-using-react-sdk-getaccesstokensilently/59221/4 "2021-03-25T23:18:12Z")

</div>

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