Crate jsonwebtoken [−] [src]
Create and parses JWT (JSON Web Tokens)
Modules
errors |
Structs
Header |
A basic JWT header part, the alg is automatically filled for use It's missing things like the kid but that's for later |
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 and the secret |