Is there a built in way for signup() to throw if a user's email is not verified yet?
01/12/2023, 5:10 AM
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.
01/12/2023, 5:18 AM
Yeah that's how I'm currently handling it. I didn't find anything in the docs regarding this specific use case
01/12/2023, 5:19 AM
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
01/12/2023, 5:30 AM
Gotcha. Good to know that I'm not implementing any anti-patterns