Skip to content

Increase access and refresh token field length to 4096 (#1523)Fix: increase access and refresh token field length to 4096 (#1523) #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DarshanKumarGP
Copy link

This pull request increases the maximum length of the access_token and refresh_token fields in the SQLAlchemy OAuth account model from 1024 to 4096 characters.

OAuth2 providers using long JWT tokens (such as RS256 signed tokens from Auth0 or Authentik) have tokens that exceed the 1024 character limit, causing database errors with PostgreSQL (StringDataRightTruncation).

This fix allows storing longer tokens without truncation errors.

Closes #1523.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant