# In the Authorization Code Flow, how can I let my backend know a user is authenticated and authorized?

**URL:** <https://community.auth0.com/t/in-the-authorization-code-flow-how-can-i-let-my-backend-know-a-user-is-authenticated-and-authorized/185819>\
**Category:** Get Help\
**Tags:** apis, application\
**Created:** [April 23, 2025, 12:30am UTC](https://community.auth0.com/t/in-the-authorization-code-flow-how-can-i-let-my-backend-know-a-user-is-authenticated-and-authorized/185819 "2025-04-23T00:30:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![roamingstars](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@roamingstars](https://community.auth0.com/u/roamingstars)\
**Post date:** [April 23, 2025, 12:30am UTC](https://community.auth0.com/t/in-the-authorization-code-flow-how-can-i-let-my-backend-know-a-user-is-authenticated-and-authorized/185819/1 "2025-04-23T00:30:43Z")

</div>

I’ve successfully implemented the Authorization Code Flow to the point where my frontend can log a user in, verify authentication, retrieve user profile information, and retrieve what I understand to be an opaque token by running Auth0Client’s `getTokenSilently()` method.

However, now I’d like to hit my backend API endpoints with the confidence that the user has been authenticated/authorized via Auth0. From what I understand, opaque tokens are not decodable. How can I do this?

---

<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:** [April 24, 2025, 6:51pm UTC](https://community.auth0.com/t/in-the-authorization-code-flow-how-can-i-let-my-backend-know-a-user-is-authenticated-and-authorized/185819/3 "2025-04-24T18:51:52Z")

</div>

Hi @roamingstars,

Welcome to the Auth0 Community!

An opaque token happens when the `audience` query parameter is not passed in the login request. See the screenshot below:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/a/c/accbad4d1364afe1249d039f768c2a99e44ab10e.png)  
(Reference: [Get Access Tokens - Control Access Token Audience](https://auth0.com/docs/secure/tokens/access-tokens/get-access-tokens#control-access-token-audience))

If that’s the case, yes, you’re right that they are not decodable. However, you can use them to call the Authentication API’s [GET /userinfo](https://auth0.com/docs/api/authentication/user-profile/get-user-info) endpoint to get the user claims.

However, if you want a JWT access token that your backend can decode and verify, you might try [specifying an audience](https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow/call-your-api-using-the-authorization-code-flow) in the `/authorize` request.

Let me know if you have any questions.

Best,  
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:** [May 8, 2025, 6:52pm UTC](https://community.auth0.com/t/in-the-authorization-code-flow-how-can-i-let-my-backend-know-a-user-is-authenticated-and-authorized/185819/4 "2025-05-08T18:52:16Z")

</div>

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