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"}
]
endYou can use this method to get the payload.
JwtDecoder.get_data(jwt)This method can return:
{:ok, data}or
:error_decode_base64or
:error_get_payload_encodeor
:error_decode_string_to_mapDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/jwt_decoder.