createSiwxJwks()
createSiwxJwks(
keys):SiwxJwks
Defined in: siwx-server/src/jwtKeys.ts:150
Builds the JWKS to publish: the public JWK of every key, in order, without duplicate kids. Pass the current
signing key first and the keys it replaced after it, so tokens signed before a rotation keep verifying until they
expire.
Parameters
keys
readonly (SiwxPublicJwk | SiwxJwtKey)[]
Signing keys (their public JWK is used) and/or public JWKs.
Returns
The JWKS, safe to serve publicly.
Last updated on