UNPKG

@simulacrum/auth0-simulator

Version:

Run local instance of Auth0 API for local development and integration testing

8 lines 311 B
export const epochTime = (date = Date.now()) => Math.floor(date / 1000); export const expiresAt = (hours = 1) => epochTime() + hours * 60 * 60 * 1000; export const epochTimeToLocalDate = (epoch) => { let date = new Date(0); date.setUTCSeconds(epoch); return date; }; //# sourceMappingURL=date.js.map