HeathH
Convex Community17mo ago
12 replies
Heath

Rejecting signin for unknown users when using magic link authorization (e.g. Resend)

I am using the Resend magic link w/ Convex Auth, which works fine, but I would like to prevent account creation for users that are not already registered in the database.

I looked a bit into how Auth.js handles this. They provide a pre-signIn callback that you can use to reject signin attempts. However, this callback isn't exposed via Convex Auth.
Was this page helpful?