Skip to content

Class: SystemClock

Class: 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 Vendidit\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