Skip to content
On this page

Function: revokedAtFor()

TypeScript
function revokedAtFor(
   records: readonly ParsedDeviceEvent[], 
   address: string, 
   deviceId: string, 
   now?: Date): string;

Defined in: live.ts:83 (opens in a new tab)

The revoked_at to sign when revoking (address, deviceId): the current time, or the latest signed created_at among that device's binds in records if later, so the revocation also retires a bind dated ahead.

ParametersLink to this section

ParameterType
recordsreadonly ParsedDeviceEvent[]
addressstring
deviceIdstring
nowDate

ReturnsLink to this section

string