@climatepartner/climatepartner-api-sdk
Version:
The ClimatePartner API provides one uniform public API to customers of ClimatePartner.
14 lines (13 loc) • 524 B
TypeScript
import { SecureTokenServiceApi } from '../../publish/sts/apis/secure-token-service-api';
export declare class StsService extends SecureTokenServiceApi {
#private;
protected basePath: string;
private longtermToken;
private authorizationStoragePath?;
constructor(basePath: string, longtermToken: string, authorizationStoragePath?: string);
/**
* get the access token. If token is expired a new token will be fetched
* and stored.
*/
getToken: (force?: boolean) => Promise<string>;
}