Skip to content

Adding Email to user with updateUser() always triggers Email confirmation, even when disabled. #1979

Open
@TheBekker

Description

@TheBekker

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 });

Image

To Reproduce

  1. Setup Phone Auth provider with Twilio
  2. Email Auth Provider with confirmation disabled
  3. Call await supabase.auth.signInWithOtp({ phone: phone })
  4. Call await supabase.auth.verifyOtp({ phone: phone, token: verificationCode, type: 'sms' }) with received auth code
  5. Call await supabase.auth.updateUser({ email: email }); with your email.
  6. See that you receive email about confirming your email address, even though it is set as disabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions