auth-js
auth-js copied to clipboard
Confirming user email update sends user to an Error
Bug report
Describe the bug
When confirming an updated email via the link sent by Supabase, the user gets taken to a page which just contains a json object with the following message:
"message": "no Route matched with those values"
To Reproduce
- Create an app that supports user registration via email & password with the js-lib.
- Create a method to update the email, using the following code:
const { user, error } = await supabase.auth.update({
email: updatedEmail,
});
- Click link sent to user's old email
- See error
Expected behavior
User email to be updated, then redirected to site.
System information
- Version of supabase-js: 1.22.6
Additional context
Unsure how long links last before expiring, but for the time being this link allows you to view the error: https://udqdmhuoglnkrnpwdend.supabase.co/?token=-2VosgsXGFvwDzcL6BypZw&type=email_change&redirect_to=http://localhost:3000/