Create and parses JWT (JSON Web Tokens)
All the errors, generated using error-chain
A basic JWT header, the alg defaults to HS256 and typ is automatically
The return type of a successful call to decode
Contains the various validations that are applied after decoding a token.
The algorithms supported for signing/verifying
Decode a token without any signature validation into a struct containing 2 fields:
Decode a token into a struct containing 2 fields:
Decode a token and return the Header. This is not doing any kind of validation: it is meant to be
used when you don't know which
Encode the header and claims given and sign the payload using the algorithm from the header and the key
Take the payload of a JWT, sign it using the algorithm given and return the base64 url safe encoded of the result.
Compares the signature given with a re-computed signature for HMAC or using the public key for RSA.