From aee42813aa14a0a80fc7783f2431b365d770949b Mon Sep 17 00:00:00 2001 From: tolgahan-arikan Date: Tue, 6 Aug 2024 18:10:43 +0300 Subject: [PATCH] Fix account type text for legacy email login (#111) --- packages/kit/src/hooks/useWaasEmailConflict.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/kit/src/hooks/useWaasEmailConflict.ts b/packages/kit/src/hooks/useWaasEmailConflict.ts index dd0a854a..a209a91e 100644 --- a/packages/kit/src/hooks/useWaasEmailConflict.ts +++ b/packages/kit/src/hooks/useWaasEmailConflict.ts @@ -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'