Phone

Authentication method with phone numbers and password

Types

Link copied to clipboard

Represents the phone number confirmation channel

Link copied to clipboard
@Serializable
data class Config(var phone: String = "", var password: String = "", var channel: Phone.Channel = Channel.SMS) : DefaultAuthProvider.Config

The configuration for the phone authentication method

Properties

Link copied to clipboard
open override val grantType: String

The grant type of the provider.

Functions

Link copied to clipboard
open override fun decodeResult(json: JsonObject): UserInfo
Link copied to clipboard
open override fun encodeCredentials(credentials: Phone.Config.() -> Unit): JsonObject
Link copied to clipboard
open suspend override fun login(supabaseClient: SupabaseClient, onSuccess: suspend (UserSession) -> Unit, redirectUrl: String?, config: Phone.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: Phone.Config.() -> Unit?): UserInfo?

Used to sign up a user.