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

Verifies a service-account token and answers the identity it carries.

`{:error, :unauthenticated}` refuses the token; `{:error,
%UnavailableError{}}` reports that no verdict could be reached. `options`
are the strategy's resolved `api` options merged with the verifier's own.
Results are cached by `AshAuthentication.Strategy.KubernetesServiceAccount.VerdictCache`,
not by the verifier.

# `verify`

```elixir
@callback verify(token :: String.t(), audiences :: [String.t()], options :: keyword()) ::
  {:ok,
   AshAuthentication.Strategy.KubernetesServiceAccount.IdentityMapper.identity()}
  | {:error,
     :unauthenticated
     | AshAuthentication.Strategy.KubernetesServiceAccount.UnavailableError.t()}
```

---

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