I cannot update the user email
Hi all,
I have the following Vue 3 and Supabase project.
It is supposed to have an update email button in the profile page that when clicked, sends a confirmation link to your new email and when i click on the link, the email should be updated.
But this is what actually happens:
when I click on the button to update my email ID.
It sends a link to my email. The link is http://localhost:5173/confirm-update-email?token_hash=hash-number.
Then the page auto redirects to http://localhost:5173/profile#message=Email+updated+successfully, but my email ID remains the same. I even check the supabase website and the old email id still shows in Authentication > Users.
This is my update functions:
const { error } = await supabase.auth.updateUser({
email: input.email.value,
});
I read somewhere that I'm supposed to select "Double confirm email changes" in supabase in the Users page but I cannot find it. Is it because of an interface change on the website?
How do I fix this?
I have the following Vue 3 and Supabase project.
It is supposed to have an update email button in the profile page that when clicked, sends a confirmation link to your new email and when i click on the link, the email should be updated.
But this is what actually happens:
when I click on the button to update my email ID.
It sends a link to my email. The link is http://localhost:5173/confirm-update-email?token_hash=hash-number.
Then the page auto redirects to http://localhost:5173/profile#message=Email+updated+successfully, but my email ID remains the same. I even check the supabase website and the old email id still shows in Authentication > Users.
This is my update functions:
const { error } = await supabase.auth.updateUser({
email: input.email.value,
});
I read somewhere that I'm supposed to select "Double confirm email changes" in supabase in the Users page but I cannot find it. Is it because of an interface change on the website?
How do I fix this?