Flutter: Sign in a user through OTP

Examples

Sign in with email.

await supabase.auth.signInWithOtp(
  email: 'example@email.com',
  emailRedirectTo: kIsWeb ? null : 'io.supabase.flutter://signin-callback/',
);

Sign in with SMS OTP.

await supabase.auth.signInWithOtp(
  phone: '+13334445555',
);

Sign in with WhatsApp OTP

await supabase.auth.signInWithOtp(
  phone: '+13334445555',
  channel: OtpChannel.whatsapp,  
);