ibrahimyaacob
ibrahimyaacob4mo ago

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
No description
2 Replies
sshader
sshader4mo ago
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.ts
GitHub
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
ibrahimyaacob
ibrahimyaacobOP3mo ago
hey @sshader thanks for this, i'll give this a try hey @sshader its been a month, i finally tried it, it works !

Did you find this page helpful?