Skip to content

fix: improve OAuth account merge logic to prevent duplicate binding e…#116

Merged
Rabithua merged 1 commit intomainfrom
develop
Dec 8, 2025
Merged

fix: improve OAuth account merge logic to prevent duplicate binding e…#116
Rabithua merged 1 commit intomainfrom
develop

Conversation

@Rabithua
Copy link
Copy Markdown
Owner

@Rabithua Rabithua commented Dec 8, 2025

  • Add migratedBindings return value from mergeUserAccounts to track which bindings were migrated
  • Add error handling for OAuth binding creation after merge to prevent data inconsistency
  • Add concurrent operation check before creating bindings
  • Move target account binding check into transaction to prevent race conditions
  • Improve error messages for better debugging

…rrors

- Add migratedBindings return value from mergeUserAccounts to track which bindings were migrated
- Add error handling for OAuth binding creation after merge to prevent data inconsistency
- Add concurrent operation check before creating bindings
- Move target account binding check into transaction to prevent race conditions
- Improve error messages for better debugging
Copy link
Copy Markdown
Owner Author

@Rabithua Rabithua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hope fixed

@Rabithua Rabithua merged commit d8c537d into main Dec 8, 2025
2 checks passed
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