Skip to content

Commit

Permalink
Fix account type text for legacy email login (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolgahan-arikan authored Aug 6, 2024
1 parent 84c8340 commit aee4281
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/kit/src/hooks/useWaasEmailConflict.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ const accountTypeText = (info: EmailConflictInfo | null) => {
}

if (info.type === IdentityType.OIDC) {
if (info.issuer.includes('cognito-idp')) {
return 'Legacy Email login'
}

switch (info.issuer) {
case 'https://accounts.google.com':
return 'Google login'
Expand Down

0 comments on commit aee4281

Please sign in to comment.