@sap-cloud-sdk/core
Version:
SAP Cloud SDK for JavaScript core
10 lines • 700 B
TypeScript
import { Cache } from './cache';
import { ClientCredentials, ClientCredentialsResponse } from './xsuaa-service-types';
export declare function getGrantTokenCacheKey(url: string, credentialsOrClientId: ClientCredentials | string): string;
export declare const clientCredentialsTokenCache: {
getGrantTokenFromCache: (url: any, credentialsOrClientId: ClientCredentials | string) => ClientCredentialsResponse | undefined;
cacheRetrievedToken: (url: any, credentialsOrClientId: ClientCredentials | string, token: ClientCredentialsResponse) => void;
clear: () => void;
getCacheInstance: () => Cache<ClientCredentialsResponse>;
};
//# sourceMappingURL=client-credentials-token-cache.d.ts.map