You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Joken.Config behaviour handles the configuration of the secret_key, algorithm, encode and decode functions, as well as functions for adding and validating claims
Add options parameter to Joken.Token.decode
Add options parameter to Joken.decode
Removed :none algorithm completely
Breaking
Joken.Codec is replaced by Joken.Config.
json_module in config is replaced by config_module.
algorithm and secret_key in config is replaced by implementing the algorithm and secret_key functions on Joken.Config.
Joken.Token.encode now has a signature of (joken_config, payload) since the algorithm and secret key are defined inside of the passed in joken_config module.
Joken.Token.decode now has a signature of (joken_config, jwt, options \\ []) since the algorithm and secret key are defined inside of the passed in joken_config module.