Interface GetAnonymousAccessTokenOptions

Options for silently obtaining a valid anonymous access token.

interface GetAnonymousAccessTokenOptions {
    audience?: string;
    scope?: string;
    sessionToken?: string;
}

Properties

audience?: string

The API audience the access token should be scoped to.

scope?: string

Space-separated list of scopes to request.

sessionToken?: string

The session token from an existing anonymous session. When provided, the SDK will re-mint the access token using the session token. When omitted, a fresh anonymous session is created.