JokenJwks.SignerMatchStrategy behaviour (Joken JWKS v1.6.0) View Source
A strategy behaviour for using with JokenJwks
.
JokenJwks will call this for every token with a kid. It is the strategy's responsibility to handle caching and matching of the kid with its signers cache.
See JokenJwks.DefaultStrategyTemplate
for an implementation.
Link to this section Summary
Link to this section Callbacks
Specs
match_signer_for_kid(kid :: binary(), hook_options :: any()) :: {:ok, Joken.Signer.t()} | {:error, reason :: atom()}