DefaultAuthProvider

sealed interface DefaultAuthProvider<C, R> : AuthProvider<C, R> (source)

A default authentication provider

See also

Inheritors

Types

Link copied to clipboard
@Serializable
sealed class Config

The default configuration for the provider.

Properties

Link copied to clipboard
abstract val grantType: String

The grant type of the provider.

Functions

Link copied to clipboard
abstract fun decodeResult(json: JsonObject): R
Link copied to clipboard
abstract fun encodeCredentials(credentials: C.() -> Unit): JsonObject
Link copied to clipboard
open suspend override fun login(supabaseClient: SupabaseClient, onSuccess: suspend (UserSession) -> Unit, redirectUrl: String?, config: C.() -> Unit?)

Used to login a user

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

Used to sign up a user.