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