Config

class Config(serializer: SupabaseSerializer, var email: String? = null, var phone: String? = null, var data: JsonObject? = null, var createUser: Boolean = true, var captchaToken: String? = null)(source)

The configuration for the OTP authentication method

Note: Only email or phone can be set

Parameters

email

The email of the user

phone

The phone number of the user

data

Additional data to store with the user

createUser

Whether to create a new user if the user doesn't exist

captchaToken

The captcha token for the request

Constructors

Link copied to clipboard
constructor(serializer: SupabaseSerializer, email: String? = null, phone: String? = null, data: JsonObject? = null, createUser: Boolean = true, captchaToken: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var data: JsonObject?
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun <T : Any> data(data: T)

Sets data to the given value.