# How to validate token from using "Login Using the Authorization Code Flow"

**URL:** <https://community.auth0.com/t/how-to-validate-token-from-using-login-using-the-authorization-code-flow/87981>\
**Category:** Get Help\
**Created:** [August 1, 2022, 7:37pm UTC](https://community.auth0.com/t/how-to-validate-token-from-using-login-using-the-authorization-code-flow/87981 "2022-08-01T19:37:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexandru.dan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexandru.dan/32/34059_2.png) [@alexandru.dan](https://community.auth0.com/u/alexandru.dan)\
**Post date:** [August 1, 2022, 7:37pm UTC](https://community.auth0.com/t/how-to-validate-token-from-using-login-using-the-authorization-code-flow/87981/1 "2022-08-01T19:37:24Z")

</div>

So I implemented the " Login Using the Authorization Code Flow" and got myself the access token, id token, and refresh token. I have previously used an access token but generated much easier with “client\_credentials” just to learn the basics of token validation in my backend API endpoints. Now how do I do that with the access token I got from using the code flow method? When I paste it inside the [jwt.io](https://jwt.io/) it has no body and invalid signature. I changed from “client\_credentials” to this approach so I can also access the `/userinfo` endpoint from the backend, which I can now.  
Thanks in advance.

---

<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:** [August 2, 2022, 3:58pm UTC](https://community.auth0.com/t/how-to-validate-token-from-using-login-using-the-authorization-code-flow/87981/3 "2022-08-02T15:58:29Z")

</div>

Hi @alexandru.dan,

Thanks for reaching out to the Auth0 Community!

I understand that you have questions about getting an access token for validation.

> [@alexandru.dan](#):
>
> Now how do I do that with the access token I got from using the code flow method? When I paste it inside the [jwt.io](https://jwt.io/) it has no body and invalid signature.

From what I can tell, it seems that you have obtained an opaque access token, which cannot be decoded with [jwt.io](http://jwt.io). In this case, you can directly use that opaque access token to call the `/userinfo` endpoint. See the [Opaque Access Tokens](https://auth0.com/docs/secure/tokens/access-tokens#opaque-access-tokens) documentation to learn more.

Let me add that the `audience` parameter must be specified to get an access token in the JWT format.

I hope this helps!

Please reach out if you have any additional questions.

Thank you.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 21, 2022, 6:11pm UTC](https://community.auth0.com/t/how-to-validate-token-from-using-login-using-the-authorization-code-flow/87981/4 "2022-12-21T18:11:26Z")

</div>


