MCPcopy
hub / github.com/nextauthjs/next-auth / fromDate

Function fromDate

src/core/lib/utils.ts:11–13  ·  view source on GitHub ↗
(time: number, date = Date.now())

Source from the content-addressed store, hash-verified

9 * the date in the future will be calculated from that date instead of now.
10 */
11export function fromDate(time: number, date = Date.now()) {
12 return new Date(date + time * 1000)
13}
14
15export function hashToken(token: string, options: InternalOptions<"email">) {
16 const { provider, secret } = options

Callers 2

sessionFunction · 0.90
callbackHandlerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…