# Getting Opaque token instead of JWT token (Audience Added)

**URL:** <https://community.auth0.com/t/getting-opaque-token-instead-of-jwt-token-audience-added/129715>\
**Category:** Get Help\
**Tags:** sdks-quickstarts, auth0-react\
**Created:** [March 14, 2024, 4:22pm UTC](https://community.auth0.com/t/getting-opaque-token-instead-of-jwt-token-audience-added/129715 "2024-03-14T16:22:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabri-g](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fabri-g/32/55641_2.png) [@fabri-g](https://community.auth0.com/u/fabri-g)\
**Post date:** [March 14, 2024, 4:22pm UTC](https://community.auth0.com/t/getting-opaque-token-instead-of-jwt-token-audience-added/129715/1 "2024-03-14T16:22:56Z")

</div>

Hi! I’m developing a React application using Auth0 for authentication. I’m using the getAccessTokenSilently method to get an access token to use in my backend.

This is my Auth0Provider component:

```auto
<Auth0Provider
      domain={process.env.NEXT_PUBLIC_AUTH0_DOMAIN}
      clientId={process.env.NEXT_PUBLIC_AUTH0_CLIENT_ID}
      redirectUri={window.location.origin}
      audience={process.env.NEXT_PUBLIC_AUTH0_AUDIENCE}
      scope="openid profile email"
    >
       <App />
    </Auth0Provider>

```

I’m using the loginWithRedirect function to manage the login.

This is how I’m trying to retrieve the access token (I added the log to see if it worked correctly):

```auto
const fetchAccessToken = async () => {
      try {
        const accessToken = await getAccessTokenSilently();
        console.log("Access Token:", accessToken);
      } catch (e) {
        console.error(e);
      }
    };

```

The access token I get has this format:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/a/5/a583a085ee143fe3339f6507f40d24f9daab6218.png)

I read this post: [Added Audience and STILL getting Opaque token instead of JWT token with React](https://community.auth0.com/t/added-audience-and-still-getting-opaque-token-instead-of-jwt-token-with-react/110636)  
But the solution haven’t worked in my case

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [March 14, 2024, 6:33pm UTC](https://community.auth0.com/t/getting-opaque-token-instead-of-jwt-token-audience-added/129715/3 "2024-03-14T18:33:10Z")

</div>

Hi @fabri-g,

Welcome to the Auth0 Community!

After reviewing your screenshot, I can confirm that you are getting an opaque access token instead of a JWT access token.

This happens when the audience parameter is omitted from your login request. Of course, this contradicts setting the audience in the Auth0Provider.

So, in this case, we will want to check the network activity on a browser to see if the audience parameter is passed in the login request (`/authorize`). Could you give that a try and let me know what you find?

Thanks,  
Rueben

---

<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:** [March 28, 2024, 7:26pm UTC](https://community.auth0.com/t/getting-opaque-token-instead-of-jwt-token-audience-added/129715/5 "2024-03-28T19:26:32Z")

</div>

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