about how to get otp to mail #47507
Replies: 2 comments
-
|
You are currently placing {{ .Token }} inside the link URL: That does not show the OTP code to the user. It treats the token as a URL, which is why the email still behaves like a sign-in link. Use this template instead: Your sign-in OTPUse the code below to sign in. It expires shortly and can only be used once. {{ .Token }} Then, after sending the email with signInWithOtp, verify the OTP in your app with: const { data, error } = await supabase.auth.verifyOtp({ Do not use {{ .Token }} inside an href. It should be visible text in the email template. Also make sure the updated template was saved in the correct Auth email template section before testing again. |
Beta Was this translation helpful? Give feedback.
-
|
Two separate things are going on here:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
about how to get otp to mail.i am getting signin link but i am not getting otp to my mail


and also i am getting error like Error sending magic link email
Beta Was this translation helpful? Give feedback.
All reactions