A collection of functions to decode Jwt tokens.
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 are included of the software working with Phoenix and Node backends. More discussion of the Phoenix example can be found in this blog post.
- 1.0.0: Fork from simonh1000/elm-jwt to remove the dependency on elm/http