Frequently Asked Questions About the Auth0 Refresh Token Length Increase
Last Updated:
Overview
Auth0 increases the length of refresh tokens starting in November. This change requires applications to handle variable-length refresh tokens up to 4096 characters to prevent authentication failures during token refresh operations. The following information addresses common questions regarding the rollout timeline, application impact, and storage recommendations.
Applies To
- Auth0
- Refresh Tokens
- Application Architecture
Solution
When does the refresh token length change take effect?
Auth0 will begin issuing longer refresh tokens in the public cloud during the first week of November and expects a full rollout by mid-November.
Applications experience failures when the increased token length is unsupported.
The impact depends on the application architecture and database configuration. If an application uses a fixed-size database field or performs maximum-length validation (such as a regular expression that expects exactly 45 characters), token storage fails. For example, a PostgreSQL database may reject the oversized token, preventing session maintenance. A MySQL database may truncate the token to the first 45 bytes, causing the subsequent refresh request to fail.
Does the initial login succeed if the application cannot store the new token?
Yes, the initial login succeeds. The /oauth/token endpoint functions normally and returns the ID token, access token, and the new longer refresh token. The failure occurs later when the application attempts to use the truncated or rejected refresh token to obtain a new access token.
Other token types remain unaffected by this change.
This change applies exclusively to refresh tokens. The format of Access Tokens, ID Tokens, and authorization codes remains unchanged.
What is the recommended storage size for refresh tokens?
Auth0 recommends treating refresh tokens as opaque, variable-length strings. To prevent future issues if token lengths increase again, configure database fields as VARCHAR or TEXT without restrictive character limits. Refresh tokens will not exceed 4096 characters.