@darthcav/ts-http-server
    Preparing search index...

    Function createKeycloakVerifier

    • Creates a JWT token verifier backed by a Keycloak realm's JWKS endpoint.

      The JWKS keys are fetched lazily on the first verification request and cached; key rotation is handled automatically by jose.

      The verifier extracts the bearer token from the Authorization header, verifies the JWT signature against the realm's public keys, and validates the issuer claim. Any verification failure returns false without throwing.

      Parameters

      Returns TokenVerifier

      An async TokenVerifier that returns true if the bearer JWT is valid, false otherwise.