JWKS
bshEngine.jwks() reads the public JSON Web Key Set (GET /.well-known/jwks.json): the public keys that verify the engine’s access tokens.
Docs
Usage
const jwks = await bshEngine.jwks();
const key = jwks?.keys.find(k => k.kid === tokenKid);It returns the raw JWK Set,
To verify tokens in a backend, you can also give the URL to your JWT library, which caches the set and fetches it again on an unknown kid. See Verifying tokens in other services.
Last updated on