[−][src]Crate jsonwebtoken
Create and parses JWT (JSON Web Tokens)
Documentation: stable
Modules
crypto | Lower level functions, if you want to do something other than JWTs |
errors | All the errors that can be encountered while encoding/decoding JWTs |
Structs
Header | A basic JWT header, the alg defaults to HS256 and typ is automatically
set to |
TokenData | The return type of a successful call to decode. |
Validation | Contains the various validations that are applied after decoding a JWT. |
Enums
Algorithm | The algorithms supported for signing/verifying JWTs |
Functions
dangerous_unsafe_decode | Decode a JWT without any signature verification/validations. |
decode | Decode and validate a JWT using a secret for HS and a public PEM format for RSA/EC |
decode_header | Decode a JWT without any signature verification/validations and return its Header. |
decode_rsa_components | Decode and validate a JWT using (n, e) base64 encoded public key components for RSA |
encode | Encode the header and claims given and sign the payload using the algorithm from the header and the key. If the algorithm given is RSA or EC, the key needs to be in the PEM format. |