Bug report
Describe the bug
Password Recovery flow does not work as expected for @supabase/ssr v0.4.0, whereas the same code works for v0.3.0. Confirmations, invitations, and magic links seem to work just fine, but password recovery does not. It does not update the session if the type is set to "recovery".
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Set up SvelteKit SSR client as detailed here.
- Create Forgot + Change Password pages as detailed here.
- Update the Password Recovery email template to use the following template:
{{ .SiteURL }}/auth/confirm?token_hash={{ .TokenHash }}&type=recovery&next=/change-password
- Ensure that the version of
@supabase/ssr is v0.4.0
- Attempt to reset password for a user through their email.
- When the user visits the reset link, authentication fails.
- Change the version of
@supabase/ssr to v0.3.0
- Try the password reset flow again.
- It works.
Expected behavior
The password recovery flow for v0.4.0 of @supabase/ssr, as detailed here, should authenticate the user and redirect them to the "/change-password" page.
System information
Additional context
I followed these guides:
https://supabase.com/docs/guides/auth/server-side/sveltekit
https://supabase.com/docs/guides/auth/passwords?queryGroups=flow&flow=pkce&queryGroups=framework&framework=sveltekit#resetting-a-password
A reference repo using v0.3.0 I used to confirm that the code worked, but updating it to v0.4.0 fails: https://github.com/j4w8n/sveltekit-supabase-ssr
Bug report
Describe the bug
Password Recovery flow does not work as expected for
@supabase/ssrv0.4.0, whereas the same code works for v0.3.0. Confirmations, invitations, and magic links seem to work just fine, but password recovery does not. It does not update the session if the type is set to "recovery".To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
{{ .SiteURL }}/auth/confirm?token_hash={{ .TokenHash }}&type=recovery&next=/change-password@supabase/ssris v0.4.0@supabase/ssrto v0.3.0Expected behavior
The password recovery flow for v0.4.0 of
@supabase/ssr, as detailed here, should authenticate the user and redirect them to the "/change-password" page.System information
Additional context
I followed these guides:
https://supabase.com/docs/guides/auth/server-side/sveltekit
https://supabase.com/docs/guides/auth/passwords?queryGroups=flow&flow=pkce&queryGroups=framework&framework=sveltekit#resetting-a-password
A reference repo using v0.3.0 I used to confirm that the code worked, but updating it to v0.4.0 fails: https://github.com/j4w8n/sveltekit-supabase-ssr