Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ export const auth = betterAuth({
// Resolve the account email from /user/emails (primary + verified) so
// returning GitHub users match their existing planner accounts.
getUserInfo: getGithubUserInfo,
// Re-derive the stored email from the provider on every sign-in so users
// who linked BEFORE getUserInfo shipped (with their old public-email
// address) self-heal to the primary instead of staying bound to a
// duplicate planner account.
overrideUserInfoOnSignIn: true,
},
},
telemetry: {
Expand Down