Behaviour for configured verification token modules.
The configured token module follows the same API shape as Phoenix.Token:
config :phoenix_cap,
token_module: Phoenix.TokenCustom token modules should implement sign/3 and verify/4 with the same
argument order.
Summary
Callbacks
Signs the verification payload using the endpoint context and configured salt.
Authenticates the token and returns its payload. Honor the supplied :max_age in seconds.
Types
@type reason() :: term()
Failure reported by the configured signing module.
Callbacks
Signs the verification payload using the endpoint context and configured salt.
Authenticates the token and returns its payload. Honor the supplied :max_age in seconds.