Skip to content

Commit

Permalink
ux: improve message for oauthaccountnotlinked
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjavi committed Aug 24, 2024
1 parent 78272a3 commit daf69ee
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/pages/auth/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ export default function Page() {
errorMessage = 'Cannot send the Sign In link at this time due to an internal error. Please try again later.'
break
case 'oauthaccountnotlinked':
errorMessage = 'The OAuth account might be already linked to another user'
break
case 'emailsignin':
errorMessage = 'Cannot send the Sign In link at this time due to an internal error. Please try again later.'
errorMessage = 'The email of this OAuth provider is already linked to another account. Please use Sign In via Email to login with that account.'
break
default:
errorMessage = <>Unexpected sign up error{error ? <i>{`: ${error}`}</i> : ''}</>
Expand Down

0 comments on commit daf69ee

Please sign in to comment.