Merge pull request #2395 from imlewc/fix-oidc-compat-email-display

fix(auth): prefer OIDC compat email in pending flow
This commit is contained in:
Wesley Liddick 2026-05-19 15:13:55 +08:00 committed by GitHub
commit e9a09d8721
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -338,6 +338,7 @@ type PendingOidcCompletion = PendingOAuthExchangeResponse & {
pending_email?: string
resolved_email?: string
existing_account_email?: string
compat_email?: string
email?: string
suggested_email?: string
provider_fallback?: string
@ -461,6 +462,7 @@ function extractPendingAccountEmail(completion: PendingOidcCompletion): string {
return (
completion.pending_email ||
completion.existing_account_email ||
completion.compat_email ||
completion.resolved_email ||
completion.email ||
completion.suggested_email ||