Skip to content
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

fix: increase token field length for Google OAuth2 compatibility #147

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

Conversation

r0b3r7
Copy link

@r0b3r7 r0b3r7 commented Jan 4, 2025

The Google OAuth2 access tokens can be up to 2048 bytes long, but the current database schema limits the token field to 191 characters. This change modifies the token field type to TEXT to accommodate longer tokens and prevent truncation issues during social authentication.

  • Changes users.token field from VARCHAR(191) to TEXT
  • Ensures compatibility with Google OAuth2 token length requirements
  • Prevents authentication errors due to token truncation

Reference: Google OAuth2 token length documentation

The Google OAuth2 access tokens can be up to 2048 bytes long, but the current
database schema limits the token field to 191 characters. This change modifies
the token field type to TEXT to accommodate longer tokens and prevent truncation
issues during social authentication.

- Changes users.token field from VARCHAR(191) to TEXT
- Ensures compatibility with Google OAuth2 token length requirements
- Prevents authentication errors due to token truncation

Reference: Google OAuth2 token length documentation
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