Skip to main content
browser.WorkspaceIdentityClient Exchanges the host’s sign-in evidence for a short-lived Bijection identity. Tokens stay in memory. The backend remains the authority for verifying tokens and deciding current access; this client checks response routing. Create one per signed-in session and call clear before ending that session.

Constructors

constructor

• new WorkspaceIdentityClient(deployment, getSignInToken, options?)

Parameters

Methods

clear

▸ clear(): void Discard cached identity and invalidate every outstanding exchange.

Returns

void

getIdentity

▸ getIdentity(options?): Promise<null | Token> Return an identity for this deployment, or null if the session ended. A forced refresh supersedes an older exchange as well as the token cache.

Parameters

Returns

Promise<null | Token>