Skip to content

Commit

Permalink
Fix sign-up flow for existing email
Browse files Browse the repository at this point in the history
  • Loading branch information
HuzaifaOmar committed Jan 27, 2025
1 parent 1f5f176 commit 4af1472
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ const authSignup = async (config: Config): Promise<string> => {

email = password = passwordConfirmation = userAlias = '';

await askData();
if (!errorMessage.includes('alias is already taken')) {
await authSelection(config);
} else {
await askData();
}
}
}
return process.exit(ErrorCode.Ok);
Expand Down

0 comments on commit 4af1472

Please sign in to comment.