Type alias AnonymousTokenConfig

AnonymousTokenConfig: {
    anonymous: {
        getDeviceId?: (() => string | Promise<string>);
        getSessionId?: (() => string | Promise<string>);
        orgId: string;
    };
}

Token configuration for the default anonymous token provider. Your machine will receive an auth context that includes a session ID (sid) and, if provided, a device ID (did) as well as an auth property that always has the value "anonymous".

For most use cases, you probably want to use the token exchange token provider with an identity provider like Auth0 or your own authentication. Make sure you really want anonymous access before using this token provider.

Type declaration

  • anonymous: {
        getDeviceId?: (() => string | Promise<string>);
        getSessionId?: (() => string | Promise<string>);
        orgId: string;
    }

    The config for anonymous access

    • Optional getDeviceId?: (() => string | Promise<string>)
        • (): string | Promise<string>
        • Returns string | Promise<string>

    • Optional getSessionId?: (() => string | Promise<string>)
        • (): string | Promise<string>
        • Returns string | Promise<string>

    • orgId: string

      The State Backed organization ID to use for anonymous access.

Generated using TypeDoc