Crate jsonwebtoken [] [src]

Create and parses JWT (JSON Web Tokens)

Modules

errors

Structs

Header

A basic JWT header part, the alg defaults to HS256 and typ is automatically set to JWT. All the other fields are optional

TokenData

The return type of a successful call to decode(...)

Enums

Algorithm

The algorithms supported for signing/verifying

Traits

Part

A part of the JWT: header and claims specifically Allows converting from/to struct with base64

Functions

decode

Decode a token into a Claims struct If the token or its signature is invalid, it will return an error

encode

Encode the claims passed and sign the payload using the algorithm from the header and the secret