Skip to content

Function: revocationKey()

TypeScript
function revocationKey(kind: "jti" | "sub", value: string): Promise<string>;

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

The feed key for a token (kind: "jti") or an account (kind: "sub"): base64url of the first 16 bytes of sha256(ocrev1:<kind>:<value>). The auth host derives the same; its tests share these vectors.

ParametersLink to this section

ParameterType
kind"jti" | "sub"
valuestring

ReturnsLink to this section

Promise<string>