TokenProvider
Defined in: libs/ccs-files-user-client/src/core/types.ts:745
Methods
Section titled “Methods”getAccessToken()
Section titled “getAccessToken()”getAccessToken(
options?):Promise<string>
Defined in: libs/ccs-files-user-client/src/core/types.ts:747
The cached token, or a new one from the route; { forceRefresh: true } skips the cache.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Promise<string>
getConfig()
Section titled “getConfig()”getConfig():
Promise<TokenRouteConfig|null>
Defined in: libs/ccs-files-user-client/src/core/types.ts:749
The route’s api_url, tenant_id, application_id (and extra), or null when it sent none.
Returns
Section titled “Returns”Promise<TokenRouteConfig | null>
clear()
Section titled “clear()”clear():
void
Defined in: libs/ccs-files-user-client/src/core/types.ts:751
Forgets the token and the configuration (sign-out).
Returns
Section titled “Returns”void