OTP

One Time Password (OTP) AuthProvider for Supabase.

You need to provide either an email or a phone number.

Types

Link copied to clipboard
class Config(serializer: SupabaseSerializer)

The configuration for the OTP authentication method

Functions

Link copied to clipboard
open suspend override fun login(supabaseClient: SupabaseClient, onSuccess: suspend (UserSession) -> Unit, redirectUrl: String?, config: OTP.Config.() -> Unit?)

Used to login a user

Link copied to clipboard
open suspend override fun signUp(supabaseClient: SupabaseClient, onSuccess: suspend (UserSession) -> Unit, redirectUrl: String?, config: OTP.Config.() -> Unit?)

Used to sign up a user.