restrict access to ResendOTP auth
I have a very specific use case where I need to be able to block emails that are not listed in a data table from signing in, is there a way to do this?
I need to access an api route or the db itself from the function in the (pretty much stock) ResendOTP setup before the email is sent
is there any way to go about this?
3 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
in case it's helpful here is a sanitized version of my code:
createOrUpdateUser is generally where this kind of thing is handled: https://labs.convex.dev/auth/advanced#controlling-user-creation-and-account-linking-behavior