auth-js icon indicating copy to clipboard operation
auth-js copied to clipboard

Confirming user email update sends user to an Error

Open joshcawthorne opened this issue 3 years ago • 0 comments

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

  1. Create an app that supports user registration via email & password with the js-lib.
  2. Create a method to update the email, using the following code:
    const { user, error } = await supabase.auth.update({
      email: updatedEmail,
    });
  1. Click link sent to user's old email
  2. 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/

joshcawthorne avatar Sep 18 '21 17:09 joshcawthorne