Is there a built in way for signup() to throw if a...
# support-questions
n
Is there a built in way for signup() to throw if a user's email is not verified yet?
r
hey @NoirLime this will be have to done by overriding the sign in recipe function.
In the override, you can call the original impl first and if that returns OK, then you can check if that user's email is verified or not using the functions in the email verification recipe. If not verified, throw an error.
n
Yeah that's how I'm currently handling it. I didn't find anything in the docs regarding this specific use case
r
yea there isn't anything specific about this. The default behaviour is that after sign in, if the user's email is not verified, we show the email verification UI
n
Gotcha. Good to know that I'm not implementing any anti-patterns