emailRedirectTo not working on auth.updateUser #18810
Replies: 6 comments
-
Would be truly thankful for any. As far as I can see, I've implemented it exactly like it is explained in the documentation: https://supabase.com/docs/reference/javascript/auth-updateuser |
Beta Was this translation helpful? Give feedback.
-
There are 2-3 scenarios here:
Even tho the documents mention the options & emailRedirectTo but i don't think auth.updateUser actually support the redirect email. (If you can share what you are actually trying to do here, I might be able to help you :) ) |
Beta Was this translation helpful? Give feedback.
-
What I try to accomplish is to update the email for an authenticated user. Think of some user wants to update the email of his account. The documentation tells me I should use:
It does indeed change the email of the user and also send the confirmation mail. But i cannot change the url where the user gets redirected after clicking the confirmation link in the mail. Is there any workaround? Thank you for your help. Much appreciated Har1s. |
Beta Was this translation helpful? Give feedback.
-
Same problem. Call to
and the |
Beta Was this translation helpful? Give feedback.
-
I have the same issue. I had my url configured in the "URL configuration" section, and I tried both emailRedirectTo and redirectTo within the updateUser. None worked. |
Beta Was this translation helpful? Give feedback.
-
I had the same issue, for me the workaround was to track onAuthSTateChanged Event and redirect the user to the correct url. |
Beta Was this translation helpful? Give feedback.
-
Can't get this redirection working.
Verification mail is sent correctly. But the confirmation links end with
"... 98&type=email_change&redirect_to=http://localhost:3000/"
I have set the redirection URLs in the Supabase Dashboard:
Any idea what to do?
Beta Was this translation helpful? Give feedback.
All reactions