Skip to main content

Interface: TokenRecord

Defined in: types.ts:67

Plain, ORM-agnostic snapshot of a stored token. The package never persists these records itself — the caller loads them (decrypting if stored encrypted) and persists updates via the onRefresh callback.

Properties

accessToken

accessToken: string

Defined in: types.ts:69

Current access token (plaintext).


accessTokenExpiresAt

accessTokenExpiresAt: Date

Defined in: types.ts:73

Absolute time at which the access token expires.


refreshToken

refreshToken: string

Defined in: types.ts:71

Current refresh token (plaintext).