UNPKG

better-auth

Version:

The most comprehensive authentication library for TypeScript.

8 lines (5 loc) 157 B
'use strict'; const getDate = (span, unit = "ms") => { return new Date(Date.now() + (unit === "sec" ? span * 1e3 : span)); }; exports.getDate = getDate;