# `AshAuthentication.Strategy.KubernetesServiceAccount.TokenVerifier.Jwks`
[🔗](https://git.jakeschurch.com/jake/ash_authentication_kubernetes/src/tag/v0.1.0/lib/ash_authentication/strategy/kubernetes_service_account/token_verifier/jwks.ex#L1)

Verifies locally against the service-account issuer's JWKS
(`<api>/openid/v1/jwks` by default, or `jwks_uri`): asymmetric signature by
a published key, `iss` equal to `issuer`, an accepted audience, `exp` in the
future and `nbf` (when present) reached, and a `sub` that agrees with the
`kubernetes.io` claims. Keys are cached for `jwks_ttl` and refetched (at most
every `jwks_refetch_ms`, default 30 seconds) when a token names an unknown `kid`, so issuer key rotation
needs nothing.

Unlike TokenReview this cannot see that a token's Pod was deleted: such a
token stays valid until its `exp`. Keep projected token lifetimes short.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
