Type alias AnonymousTokenConfig
AnonymousTokenConfig: {
anonymous: {
getDeviceId?: (() => string | Promise<string>);
getSessionId?: (() => string | Promise<string>);
orgId: string;
};
}
Type declaration
-
anonymous: {
getDeviceId?: (() => string | Promise<string>);
getSessionId?: (() => string | Promise<string>);
orgId: string;
}
-
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
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 anauth
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.