# Does auth0-spa-js support variable size access tokens?

**URL:** <https://community.auth0.com/t/does-auth0-spa-js-support-variable-size-access-tokens/72749>\
**Category:** Get Help\
**Tags:** auth0-spa-js, authorization-code, access-token\
**Created:** [November 8, 2021, 11:04am UTC](https://community.auth0.com/t/does-auth0-spa-js-support-variable-size-access-tokens/72749 "2021-11-08T11:04:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![balazs.bokanyi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/balazs.bokanyi/32/12699_2.png) [@balazs.bokanyi](https://community.auth0.com/u/balazs.bokanyi)\
**Post date:** [November 8, 2021, 11:04am UTC](https://community.auth0.com/t/does-auth0-spa-js-support-variable-size-access-tokens/72749/1 "2021-11-08T11:04:42Z")

</div>

Hello everyone,

with the recent announcement of migrating to variable size access tokens and authorization codes, I’m trying to figure out if the libraries we use support this feature.

One such library is Auth0-SPA-JS. My question is, does Auth0-SPA-JS support variable size access tokens?

I have a strong assumption that it does (mostly because we have switched on this feature in our development environment without any issues), but I could not find a clear-cut answer.

Thanks for the clarification!

Balazs

---

<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:** [November 8, 2021, 11:23pm UTC](https://community.auth0.com/t/does-auth0-spa-js-support-variable-size-access-tokens/72749/3 "2021-11-08T23:23:47Z")

</div>

Hi @balazs.bokanyi,

Welcome to the Auth0 Community!

> [@balazs.bokanyi](#):
>
> One such library is Auth0-SPA-JS. My question is, does Auth0-SPA-JS support variable size access tokens?

Yes, all Auth0 SDKs, including the Auth0-spa.js SDK supports variable size access tokens. To do so, you’ll need to make sure you have disabled the **Fixed Length of Access Token & Authorization Code** switch.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/7/e/7e87fdcae183574a1b849e82d1b69707358dfe32.png)

For additional context, by April 12, 2022, access token and authorization codes will be issued with varying lengths to support [OAuth specification RFC6749](https://datatracker.ietf.org/doc/html/rfc6749) as described in our [Deprecations and Migrations](https://auth0.com/docs/product-lifecycle/deprecations-and-migrations#opaque-access-token-and-authorization-code-fixed-length-) page. Meaning that using variable-size access tokens will be the only option.

Hoped this helps!

Please let me know if there’s anything else I can do to help.

Thank you.

---

<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 23, 2021, 11:23pm UTC](https://community.auth0.com/t/does-auth0-spa-js-support-variable-size-access-tokens/72749/4 "2021-11-23T23:23:57Z")

</div>

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