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
After updating an email of a user, email with token is send
const user = auth.currentUser(); user .update({ email: authUser.email }) .then(response => { userEmailChangeRequested = true; }) .catch(error => { console.log("Failed to send email change request", error); throw error; });
however there is not API endpoint to send the token to finish the email change
I tried both auth.confirm(token, true) which is meant for registration and .recover(token, true) for forgotten password. None worked, so I checked gotrue backend and found there is no other token type than these two.
The text was updated successfully, but these errors were encountered:
To update the user email you have to call .update() and include the email_change_token: key in the object with the value being the token string from the confirmation URL.
After updating an email of a user, email with token is send
const user = auth.currentUser(); user .update({ email: authUser.email }) .then(response => { userEmailChangeRequested = true; }) .catch(error => { console.log("Failed to send email change request", error); throw error; });
however there is not API endpoint to send the token to finish the email change
I tried both
auth.confirm(token, true)
which is meant for registration and.recover(token, true)
for forgotten password. None worked, so I checked gotrue backend and found there is no other token type than these two.The text was updated successfully, but these errors were encountered: