JonRowe/elm-jwt - version: 1.0.0

for more information visit the package's GitHub page

Package contains the following modules:

Elm helpers for working with Jwt tokens.

A collection of functions to decode Jwt tokens.

Decode a token

A Jwt is a Base64 string that has three parts

* header
* content
* signature

The library functions decodeToken and tokenDecoder provide the means to decode the content of a token, while checkTokenExpiry and isExpired specifically analyse whether the token remains within its expiry time.

Examples

Examples are included of the software working with Phoenix and Node backends. More discussion of the Phoenix example can be found in this blog post.

Changelog