Adding Email to user with updateUser() always triggers Email confirmation, even when disabled.
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- go
- Domain
- authentication
Research direction
Start with the updateUser({ email }) flow described in the reproduction steps and trace how the disabled Email Auth Provider setting is handled after phone OTP verification. Reproduce the issue with the listed Phone and Email Auth Provider setup; done means updating the email does not send a confirmation email when confirmation is disabled.
Written by the indexing model from the issue text.
Description
I have a sign-up/sign-in flow with SMS OTP, and after signup the user can add their email as well.
I have disabled Email confirmation in the Email Auth Provider, but as soon as i call updateUser with the email, i receive an email to confirm this.
await supabase.auth.updateUser({ email: email });
To Reproduce
- Setup Phone Auth provider with Twilio
- Email Auth Provider with confirmation disabled
- Call
await supabase.auth.signInWithOtp({ phone: phone }) - Call
await supabase.auth.verifyOtp({ phone: phone, token: verificationCode, type: 'sms' })with received auth code - Call
await supabase.auth.updateUser({ email: email });with your email. - See that you receive email about confirming your email address, even though it is set as disabled.
- Dominant language
- Go
- Stars
- 2.6k
- Forks
- 764
- Avg merge
- 5d 3h
- Merged PRs (30d)
- 39
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from supabase/auth
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Similar issues
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
blinklabs-io/bursa#904 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
yanet-platform/ipfw-go#129 ·
-
bug confmap/provider/googlesecretmanagerprovider needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
open-telemetry/opentelemetry-collector-contrib#51273 · 2 comments ·
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100