You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two improvements here
(1)
In the document about password reset, it mentions the email template should contain the following HTML:
<h2>Reset Password</h2>
<p>Follow this link to reset the password for your user:</p>
<p>
<a
href="{{ .SiteURL }}/auth/confirm?token_hash={{ .TokenHash }}&type=recovery&next=/account/update-password"
>Reset Password</a
>
</p>
But it seems it is not necessary, the default {{ .ConfirmationURL }} follows this way. Below is the one I saw with {{ .ConfirmationURL }} .
(2) In the document it mentions it usesverifyOtp for verification. But it seems exchangeCodeForSession should work as well. Please explain if any difference.
Describe the improvement
Add a section to explain different approaches and their pros and cons.
The text was updated successfully, but these errors were encountered:
Improve documentation
Reset Password PKCE flow
Describe the problem
Two improvements here
(1)
In the document about password reset, it mentions the email template should contain the following HTML:
But it seems it is not necessary, the default
{{ .ConfirmationURL }}
follows this way. Below is the one I saw with {{ .ConfirmationURL }} .https://*.supabase.co/auth/v1/verify?token=pkce_c65f725910287515426803ca*&type=recovery&redirect_to=https://subscription-*.vercel.app/auth/reset_password
.The only thing is during the
resetPasswordForEmail
, we need to provide the redirectTo parameter.(2) In the document it mentions it uses
verifyOtp
for verification. But it seemsexchangeCodeForSession
should work as well. Please explain if any difference.Describe the improvement
Add a section to explain different approaches and their pros and cons.
The text was updated successfully, but these errors were encountered: