-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Description
Clicking "Update email" on the account page shows: "There was a problem updating your email address."
The client-side code calls supabase.auth.updateUser({ email }, { emailRedirectTo }) which returns an error, but the actual Supabase error message is sanitized away. The root cause is unknown.
Investigation leads
- Redirect URL allow-list — the
emailRedirectToURL (/auth/callback?next=...) may not be added to Supabase Dashboard > Authentication > URL Configuration > Redirect URLs. Deploy preview URLs need to be in the allow-list. - "Secure email change" setting — if enabled in Supabase Dashboard > Authentication > Providers > Email, the flow sends confirmation to both old and new email addresses. This may affect the expected behaviour.
- SMTP rate limits — the built-in Supabase SMTP has strict rate limits which could cause failures.
Steps to reproduce
- Log in with an email/password account on a deploy preview
- Go to /account
- Enter a new email address in the "Change email" field
- Click "Update email"
- Error callout appears
Next steps
- Add
console.error('[email change]', error.message, error)temporarily to the error handler insrc/pages/account.astro(line ~348) to capture the actual Supabase error - Check Supabase Dashboard > Authentication > URL Configuration for the redirect allow-list
- Check Supabase Dashboard > Authentication > Providers > Email for the "Secure email change" toggle
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Not Started