Skip to content
rw3iss Auth

SystemClock

SystemClock

Defined in: auth-server-ts/src/tokens/system-clock.ts:3

Clock port — used by the validator + session-store TTLs so tests can pin “now” deterministically. Mirrors PHP’s rw3iss\AuthServer\Contracts\Clock.

Implements

Constructors

Constructor

new SystemClock(): SystemClock

Returns

SystemClock

Methods

now()

now(): number

Defined in: auth-server-ts/src/tokens/system-clock.ts:4

Current unix epoch seconds.

Returns

number

Implementation of

Clock.now