Repository navigation
fix(core): preserve linked social identities during email sign-in - #1
Merged
Merged
Conversation
zfy0701
added a commit
that referenced
this pull request
Nov 14, 2026
Preserve explicitly linked social identities and stored tokens during verified-email sign-in with another account from the same provider. Serialize identity and token writes against concurrent Link/Unlink operations. Build and publish the fork directly from its source. Validation covers 229 existing tests, real PostgreSQL concurrency cases, and live Google sign-in with both accounts in a test installation. Created by Codex . GPT-6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Signing in through a verified primary-email match can replace a manually linked account from the same social provider. Preserve that explicit binding and its stored tokens while allowing the alternate account to authenticate as the existing user. Exact identity ownership still takes precedence; explicit Link/Unlink and token refresh by the linked account continue to work.
Keep the change on the upstream v1.45.0 baseline without schema changes. Build images directly from the fork source and lockfile, verify them before publication, and tag each image with its full source commit. There is no build-time patch application.
Testing
The live OAuth grant returned an access token only, so live refresh-token behavior was not exercised; the PostgreSQL harness also verifies preservation of the complete stored token payload.
Build and rollout
The fork verification and image publication jobs passed. Both replicas in the test installation run the source image built from
bd2bdc5d4bf091a1943fcfac4ce66022214cab15; the six changed runtime modules were checked against the fork source inside both replicas. The later commit only broadens the workflow's branch trigger and is excluded from the Docker build context. The application repository was not changed, and no staging or production rollout was performed.Created by Codex . GPT-6