Skip to content

fix: increase OAuth token length to 4096 characters#30

Open
hotpotato89 wants to merge 1 commit into
fastapi-users:mainfrom
hotpotato89:fix/increase-token-length-limit-1523
Open

fix: increase OAuth token length to 4096 characters#30
hotpotato89 wants to merge 1 commit into
fastapi-users:mainfrom
hotpotato89:fix/increase-token-length-limit-1523

Conversation

@hotpotato89

Copy link
Copy Markdown

Description

This PR increases the length of access_token and refresh_token
columns from VARCHAR(1024) to VARCHAR(4096).

Why

OAuth providers like Authentik use RS256 tokens that can exceed 1024 chars.
This causes StringDataRightTruncation errors.

Testing

  • Tests pass with 100% coverage
  • No breaking changes

Fixes fastapi-users/fastapi-users#1523

OAuth providers like Authentik use RS256 tokens that can exceed 1024 chars.
This increases the column length to 4096 to support longer tokens.

Fixes fastapi-users/fastapi-users#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.

Access Token and Refresh Token field length too small

1 participant