Module
Jwt
- Package
- purescript-jwt
- Repository
- menelaos/purescript-jwt
A JSON Web Token
(JWT) (RFC 7519) is a string that consists of three
(URL-safe) Base64-encoded strings separated by dots.
The payload
is basically an encoded JSON object which can be
retrieved via the decode
function in this module.
For further information see: https://en.wikipedia.org/wiki/JSON_Web_Token https://tools.ietf.org/html/rfc7519
#JwtError Source
data JwtError a
A JwtError a
can be a
MalformedToken
when the token is not of the form<header>.<payload>.<signature>
Base64DecodeError
when thepayload
is not a valid Base64 stringJsonDecodeError a
when the user-provided decoder function failsJsonParseError
when the decoded Base64 string cannot be parsed as JSON
Constructors
- Modules
- Jwt