AccessToken Type alias

A string representing a token used to access resources. An empty string represents an invalid/unavailable token.

see IModelHost.getAccessToken and IModelApp.getAccessToken to obtain an access token.

see IModelHostOptions.authorizationClient and IModelAppOptions.authorizationClient to configure how access tokens are obtained.

note Access tokens expire periodically and are automatically refreshed when possible; therefore, tokens should always be requested via an AuthorizationClient, not cached for later reuse.

AccessToken = string

Defined in

Last Updated: 20 June, 2023