JwtDecoder

TODO: Add description

Installation

If available in Hex, the package can be installed by adding jwt_decoder to your list of dependencies in mix.exs:

def deps do
  [
    {:jwt_decoder, "~> 0.1.0"}
  ]
end

You can use this method to get the payload.

JwtDecoder.get_data(jwt)

This method can return:

{:ok, data}

or

:error_decode_base64

or

:error_get_payload_encode

or

:error_decode_string_to_map

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/jwt_decoder.