Unable to Log in with New Email After Email Update Confirmation in Supabase #1278
Closed
2 tasks done
Labels
bug
Something isn't working
Bug report
Describe the bug
After updating the user's email using supabase.auth.updateUser, the email confirmation is sent to both the old and new email addresses. However, after confirming the new email and attempting to log in with it, login fails. Checking the database reveals that the auth.users table still shows the old email, and the email_change field is populated with the new email. This inconsistency prevents logging in with the new email.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
After confirming the new email address, I expected to be able to log in with the new email. The auth.users table should update the email field with the new email, and the session should reflect this as well.
System information
Additional context
Upon checking the auth.users table, the email field remains as the old email, while the email_change field holds the new email. The session information also reflects this, preventing login with the new email address.
The text was updated successfully, but these errors were encountered: