verifyPhoneOtp
or verifyEmailOtp
.verifyPhoneOtp
/verifyEmailOtp
to sign up / sign-in a user.The OTP type. Depending on the type, an email or phone has to be specified as parameter.
The email or phone number, depending on which type you specified.
The token to verify.
The captcha token when having captcha enabled.
supabase.auth.verifyEmailOtp(type = OtpType.Email.EMAIL, email = "example@email.com", token = "token")
supabase.auth.verifyPhoneOtp(type = OtpType.Phone.SMS, phone = "+491234567", token = "token")