Helper functions for working with Jwt tokens and authenticated CRUD APIs.
This package provides functions for reading tokens, and for using them to make authenticated Http requests.
All the token parsing goodness in the form of a Json Decoder
-- decode token from Firebase
let firebaseToken =
decodeString (tokenDecoder Jwt.Decoders.firebase) tokenStringChecks whether a token has expired, and returns True or False, or any error that occurred while decoding the token.
Checks a token for Expiry. Returns expiry or any errors that occurred in decoding.
The following errors are modeled
decodeToken parses the token, checking that it meets the Jwt standards.
In the event of success,
decodeTokenreturns an Elm record structure using the JSON Decoder.