how to customize magic link email template?
im planning to use React Email for this but i have no idea where to plug in the code
2 Replies
It's kinda buried at the bottom here https://labs.convex.dev/auth/config/email#security-preventing-session-fixation-or-phishing, but create a custom provider using
Email
and override sendVerificationRequest
This is what the default Resend
provider looks like for reference: https://github.com/nextauthjs/next-auth/blob/main/packages/core/src/providers/resend.tsGitHub
next-auth/packages/core/src/providers/resend.ts at main · nextauthj...
Authentication for the Web. Contribute to nextauthjs/next-auth development by creating an account on GitHub.
Magic Links - Convex Auth
Authentication library for your Convex backend
hey @sshader thanks for this, i'll give this a try
hey @sshader its been a month, i finally tried it, it works !