Skip to main content

jsonwebtoken/
lib.rs

1//! Create and parses JWT (JSON Web Tokens)
2//!
3//! Documentation:  [stable](https://docs.rs/jsonwebtoken)
4//!
5
6#![deny(missing_docs)]
7
8pub use algorithms::{Algorithm, AlgorithmFamily};
9pub use decoding::{DecodingKey, DecodingKeyKind, TokenData, decode, decode_header};
10pub use encoding::{EncodingKey, encode};
11pub use header::Header;
12pub use signature;
13pub use validation::{Validation, get_current_timestamp};
14
15/// Dangerous decoding functions that should be audited and used with extreme care.
16pub mod dangerous {
17    pub use super::decoding::insecure_decode;
18}
19
20mod algorithms;
21/// Lower level functions, if you want to do something other than JWTs
22pub mod crypto;
23mod decoding;
24mod encoding;
25/// All the errors that can be encountered while encoding/decoding JWTs
26pub mod errors;
27mod header;
28pub mod jwk;
29pub mod jws;
30#[cfg(feature = "use_pem")]
31mod pem;
32mod serialization;
33mod validation;