Table of Contents

Class LinkIdentityWithIdTokenOptions

Namespace
Supabase.Gotrue
Assembly
Supabase.Gotrue.dll

Immutable inputs for linking a native OIDC identity to the currently signed-in user with an ID token. Bundles the provider and token with the optional proofs GoTrue may require, so the linking surface stays additive: new optional inputs are added here without changing the method signature.

public class LinkIdentityWithIdTokenOptions
Inheritance
LinkIdentityWithIdTokenOptions
Inherited Members

Examples

var options = new LinkIdentityWithIdTokenOptions(Constants.Provider.Google, googleIdToken);
var session = await client.LinkIdentityWithIdToken(options);

Constructors

LinkIdentityWithIdTokenOptions(Provider, string, string?, string?, string?)

public LinkIdentityWithIdTokenOptions(Constants.Provider provider, string idToken, string? accessToken = null, string? nonce = null, string? captchaToken = null)

Parameters

provider Constants.Provider

The native OIDC provider that issued the ID token.

idToken string

The OIDC ID token issued by provider.

accessToken string

Access token whose hash is checked against the ID token's at_hash claim, when present.

nonce string

Nonce whose hash is checked against the ID token's nonce claim, when present.

captchaToken string

Verification token from completing the captcha on the site.

Properties

AccessToken

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

public string? AccessToken { get; }

Property Value

string

CaptchaToken

Verification token received when the user completes the captcha on the site.

public string? CaptchaToken { get; }

Property Value

string

IdToken

The OIDC ID token issued by Provider. Its iss claim must match the provider.

public string IdToken { get; }

Property Value

string

Nonce

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

public string? Nonce { get; }

Property Value

string

Provider

The OIDC provider that issued the ID token. Linking with an ID token is only defined for the native providers: Google, Apple, Azure, and Facebook.

public Constants.Provider Provider { get; }

Property Value

Constants.Provider