UNPKG

@sap/cli-core

Version:

Command-Line Interface (CLI) Core Module

15 lines (14 loc) 472 B
import { GrantType } from "../../../../types"; type Data = { grant_type: GrantType.refresh_token; refresh_token: string; } | { grant_type: GrantType.authorization_code; code: string; } | { grant_type: GrantType.client_credentials; }; export declare const calculateExpiresAfter: (expires_in: number) => number; export declare const isExpired: (expires_after: number) => boolean; export declare const readToken: (data: Data) => Promise<void>; export {};