Created
April 2, 2023 20:13
-
-
Save perkinsjr/c0d10d657315d5b3350470f0edc5f88a to your computer and use it in GitHub Desktop.
Check if it exists Clerk Phone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
await signUp | |
.create({ | |
phoneNumber, | |
}) | |
.catch((err) => { | |
if (err.errors[0].code === "form_identifier_exists") { | |
//handle it now. | |
console.log("gracefully handle this error and switch them to sign in") | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment