Config

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

The configuration for the id token authentication method

Parameters

idToken

OIDC ID token issued by the specified provider. The iss claim in the ID token must match the supplied provider. Some ID tokens contain an at_hash which require that you provide an access_token value to be accepted properly. If the token contains a nonce claim you must supply the nonce used to obtain the ID token.

provider

The provider of the id token. Only Apple, Google, Facebook and Azure are supported

accessToken

If the ID token contains an at_hash claim, then the hash of this value is compared to the value in the ID token.

nonce

If the ID token contains a nonce claim, then the hash of this value is compared to the value in the ID token.

Constructors

Link copied to clipboard
constructor(idToken: String = "", provider: IDTokenProvider? = null, accessToken: String? = null, nonce: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "access_token")
var accessToken: String?
Link copied to clipboard
@Serializable(with = CaptchaTokenSerializer::class)
@SerialName(value = "gotrue_meta_security")
var captchaToken: String?
Link copied to clipboard
var data: JsonObject?
Link copied to clipboard
@SerialName(value = "id_token")
var idToken: String
Link copied to clipboard
Link copied to clipboard