# Opaque Access Token and Authorization Code Fixed Length

**URL:** <https://community.auth0.com/t/opaque-access-token-and-authorization-code-fixed-length/71847>\
**Category:** Get Help\
**Tags:** api, auth0\
**Created:** [October 22, 2021, 12:24am UTC](https://community.auth0.com/t/opaque-access-token-and-authorization-code-fixed-length/71847 "2021-10-22T00:24:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hien.ngo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hien.ngo/32/14833_2.png) [@hien.ngo](https://community.auth0.com/u/hien.ngo)\
**Post date:** [October 22, 2021, 12:24am UTC](https://community.auth0.com/t/opaque-access-token-and-authorization-code-fixed-length/71847/1 "2021-10-22T00:24:06Z")

</div>

I have a notice from Auth0 that the Access Token will be changed from Fixed Length to Variable length.

So I’ve some concerns and can not find the answer in any topic:

1. Is that only impact when I use the GetAccessToken without an audience?
2. What is the min and max length of the access token when we use it with an audience? As far as I know, when we use it with an audience, the format will be JWT, so the length should be too much.
3. For the guideline from Auth0, I just need to turn off the toggle Fixed Length of Access Token & Authorization Code, and perform testing to make sure our app still working as normal. If the testing is okay, we can be confident that our app and Auth0 integration will work as normal after Apr 12, 2022?

Thanks.

---

<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:** [October 26, 2021, 9:17pm UTC](https://community.auth0.com/t/opaque-access-token-and-authorization-code-fixed-length/71847/3 "2021-10-26T21:17:09Z")

</div>

> [@hien.ngo](#):
>
> Is that only impact when I use the GetAccessToken without an audience?

JWT (tokens that are returned when you pass an audience) lengths have always been variable. This change effects opaque tokens (tokens returned when you don’t pass an audience).

> [@hien.ngo](#):
>
> What is the min and max length of the access token when we use it with an audience? As far as I know, when we use it with an audience, the format will be JWT, so the length should be too much.

The OAuth spec RFC6749 does not specify a min or max length for access tokens and we do not have a published min or max for JWT tokens.

> [@hien.ngo](#):
>
> For the guideline from Auth0, I just need to turn off the toggle Fixed Length of Access Token & Authorization Code, and perform testing to make sure our app still working as normal. If the testing is okay, we can be confident that our app and Auth0 integration will work as normal after Apr 12, 2022?

The toggle will essentially give you a preview of the changes coming in April. On that date, the toggle will remain in the off position. I can’t speak directly to your implementation, but this should give you the time and opportunity to ensure the there aren’t issues.

Hope this helps!

---

<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:** [November 10, 2021, 9:17pm UTC](https://community.auth0.com/t/opaque-access-token-and-authorization-code-fixed-length/71847/4 "2021-11-10T21:17:34Z")

</div>

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