UNPKG

better-auth

Version:

The most comprehensive authentication framework for TypeScript.

7 lines (6 loc) 174 B
//#region src/utils/date.ts const getDate = (span, unit = "ms") => { return new Date(Date.now() + (unit === "sec" ? span * 1e3 : span)); }; //#endregion export { getDate };