Charon.TokenFactory.Jwt.Config (Charon v4.2.0)
View SourceConfig module for Charon.TokenFactory.Jwt.
Changing the signing key at runtime
Do not modify signing_key directly on the config.
Use from_enum/1 to create a new config when changing the signing key, it
pre-calculates derived config for performance.
Summary
Functions
Build config struct from enumerable (useful for passing in application environment). Raises for missing mandatory keys and sets defaults for optional keys.
Get the config for this module from the parent Charon.Config struct.
Types
@type t() :: %{ get_keyset: (Charon.Config.t() -> Charon.TokenFactory.Jwt.keyset()), signing_key: binary() | {binary(), binary()}, gen_poly1305_nonce: :random | (-> <<_::96>>) }
Functions
Build config struct from enumerable (useful for passing in application environment). Raises for missing mandatory keys and sets defaults for optional keys.
@spec get_mod_config(Charon.Config.t()) :: t()
Get the config for this module from the parent Charon.Config struct.