Customizing Template for OTP Verification
customize your magic link template in Supabase to send a 6-digit OTP (One-Time Password).
Last updated
customize your magic link template in Supabase to send a 6-digit OTP (One-Time Password).
Last updated
Go to the Authentication Tab
In your Supabase project dashboard, navigate to the 'Authentication' tab. This is where you'll manage settings related to user sign-ups, logins, and confirmations.
Access Email Templates
Within the Authentication settings, locate and click on the 'Templates' section. Here you’ll find various email templates that Supabase uses for different authentication processes.
Select Magic Link Template
Find and select the 'Magic Link' template. This template is used to send emails that allow users to log in with a magic link, but you can customize it for OTP as well.
Edit the Template
In the Magic Link template, you'll see an HTML editor where you can customize the email's content. Replace the default content with your new OTP message. You can use the following structure as a reference:
After pasting and possibly tweaking the code snippet, ensure you save the changes so that the new template is used for all subsequent magic link emails