@trimble-oss/trimble-id
Version:
Trimble Identity SDK for JavaScript/ TypeScript
16 lines (15 loc) • 420 B
TypeScript
/**
* Copyright (c) Trimble Inc.
* Licensed under the MIT License.
*/
/**
* @interface ITokenProvider
* @description Interface for a token provider
*/
export interface ITokenProvider {
/**
* @description Retrieves an access token for the authenticated user
* @returns {PromiseLike<string>} A Task that resolves to the value of the access token on completion
*/
RetrieveToken(): Promise<string>;
}