Skip to content

[codex] Fix social login token storage#267

Merged
jjoonleo merged 1 commit into
deployfrom
codex/fix-social-login-token-length
May 6, 2026
Merged

[codex] Fix social login token storage#267
jjoonleo merged 1 commit into
deployfrom
codex/fix-social-login-token-length

Conversation

@jjoonleo

@jjoonleo jjoonleo commented May 6, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Added a Flyway migration to widen user.social_login_token to LONGTEXT.
  • Updated the User.socialLoginToken JPA mapping to match the migrated schema.
  • Removed logs that exposed access tokens, refresh tokens, and Apple client secrets.

Why

Google and Apple OAuth refresh tokens can exceed 255 characters. The existing VARCHAR(255) column caused Google login to fail with Data truncation: Data too long for column 'social_login_token' when saving a user during login.

Impact

OAuth login can persist provider refresh tokens without truncation errors. Production logs will also stop emitting raw credential material on login/token issuance paths.

Validation

  • ./gradlew compileJava passes.
  • ./gradlew test compiles but cannot complete locally because the Spring test context attempts to connect to MySQL at localhost:3306, which is not running in this workspace.

@jjoonleo jjoonleo marked this pull request as ready for review May 6, 2026 03:12
@jjoonleo jjoonleo merged commit b03bc03 into deploy May 6, 2026
@jjoonleo jjoonleo deleted the codex/fix-social-login-token-length branch May 7, 2026 15:06
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