SITE_URL
. You can modify the SITE_URL
or add additional redirect urls in your project.Email address to send the magic link or OTP to.
Phone number to send the OTP to.
The URL to redirect the user to after they click on the magic link.
If set to false, this method will not create a new user. Defaults to true.
The user's metadata to be stored in the user's object.
The captcha token to be used for captcha verification.
Messaging channel to use (e.g. whatsapp or sms). Defaults to `OtpChannel.sms`.
await supabase.auth.signInWithOtp(
email: 'example@email.com',
emailRedirectTo: kIsWeb ? null : 'io.supabase.flutter://signin-callback/',
);
await supabase.auth.signInWithOtp(
phone: '+13334445555',
);
await supabase.auth.signInWithOtp(
phone: '+13334445555',
channel: OtpChannel.whatsapp,
);