IDToken

Allows signing in with an OIDC ID token. The authentication provider used should be enabled and configured.

Only Apple, Google, Facebook and Azure are supported as providers.

Types

Link copied to clipboard
@Serializable
data class Config(var idToken: String = "", var provider: IDTokenProvider? = null, var accessToken: String? = null, var nonce: String? = null) : DefaultAuthProvider.Config

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

Used to sign up a user.