n4auth/node_modules/@azure/msal-common/dist/utils/TimeUtils.d.ts

15 lines
462 B
TypeScript
Raw Normal View History

2021-07-15 20:10:20 +00:00
/**
* Utility class which exposes functions for managing date and time operations.
*/
export declare class TimeUtils {
/**
* return the current time in Unix time (seconds).
*/
static nowSeconds(): number;
/**
* check if a token is expired based on given UTC time in seconds.
* @param expiresOn
*/
static isTokenExpired(expiresOn: string, offset: number): boolean;
}
//# sourceMappingURL=TimeUtils.d.ts.map