Email

Authentication method with email and password

Types

Link copied to clipboard
@Serializable
data class Config(var email: String = "", var password: String = "") : DefaultAuthProvider.Config

The configuration for the email 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: Email.Config.() -> Unit): JsonObject
Link copied to clipboard
open suspend override fun login(supabaseClient: SupabaseClient, onSuccess: suspend (UserSession) -> Unit, redirectUrl: String?, config: Email.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: Email.Config.() -> Unit?): UserInfo?

Used to sign up a user.