Joken.Token
Module that handles encoding and decoding of tokens. For most cases, it’s recommended to use the Joken module, but if you need to use this module directly, you can.
Summary↑
decode(secret_key, json_module, token, claims \\ %{}) |
encode(secret_key, json_module, payload, algorithm \\ :HS256, claims \\ %{}) |
Functions
Specs:
- decode(String.t, module, String.t, Joken.payload) :: {Joken.status, %{} | String.t}
Specs:
- encode(String.t, module, Joken.payload, Joken.algorithm, Joken.payload) :: {Joken.status, binary}