predix-uaa-client
Version:
Node module to get a token from UAA using client credentials or refresh tokens
14 lines (11 loc) • 408 B
TypeScript
declare module "predix-uaa-client" {
export function getToken(url: string, clientId: string, clientSecret: string, refreshToken?: string, scopes?: string): Promise<IToken>;
export function clearCache(key: string);
export interface IToken {
access_token: string;
refresh_token: string;
expire_time: number;
renew_time: number;
token_type: string;
}
}