n4auth/node_modules/@azure/msal-common/dist/utils/TimeUtils.d.ts
2021-07-15 23:10:20 +03:00

15 lines
462 B
TypeScript

/**
* 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