Open
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.