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, var email: String? = null, var phone: String? = null, var data: JsonObject? = null, var createUser: Boolean = true, var captchaToken: String? = null)

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.