Skip to main content

Type Alias: SigningKey

SigningKey = object

Defined in: auth-core/src/signingKeys.ts:35

A private signing key, in the form an app keeps in its secret store.

Every field is JSON, so the whole object can be serialized into one environment variable or secret and read back unchanged.

Properties​

alg​

alg: AsymmetricAlgorithm

Defined in: auth-core/src/signingKeys.ts:38


kid​

kid: string

Defined in: auth-core/src/signingKeys.ts:37

Key id, written to the token header and to the JWKS entry.


privateJwk​

privateJwk: crypto.JsonWebKey

Defined in: auth-core/src/signingKeys.ts:40

The private key as a JWK (d included). Never publish it.


retiredAt?​

optional retiredAt?: number

Defined in: auth-core/src/signingKeys.ts:46

When the key stopped signing, in milliseconds since epoch. A retired key is still published and still verifies until the longest token it signed has expired — see createSigningKeySet.