2015-10-31 11:37:15 -04:00
|
|
|
//! Create and parses JWT (JSON Web Tokens)
|
|
|
|
//!
|
2017-04-13 03:36:32 -04:00
|
|
|
//! Documentation: [stable](https://docs.rs/jsonwebtoken/)
|
2017-04-12 21:08:07 -04:00
|
|
|
#![deny(missing_docs)]
|
2017-02-22 02:45:28 -05:00
|
|
|
|
2019-06-16 11:51:43 -04:00
|
|
|
mod algorithms;
|
2019-11-14 13:43:43 -05:00
|
|
|
/// Lower level functions, if you want to do something other than JWTs
|
|
|
|
pub mod crypto;
|
2019-11-09 06:42:40 -05:00
|
|
|
mod decoding;
|
2019-12-29 12:42:35 -05:00
|
|
|
mod encoding;
|
2019-11-14 13:43:43 -05:00
|
|
|
/// All the errors that can be encountered while encoding/decoding JWTs
|
2015-10-31 11:37:15 -04:00
|
|
|
pub mod errors;
|
2017-01-09 00:50:51 -05:00
|
|
|
mod header;
|
2021-08-18 04:31:52 -04:00
|
|
|
pub mod jwk;
|
2022-01-28 16:37:40 -05:00
|
|
|
#[cfg(feature = "use_pem")]
|
2019-11-14 13:43:43 -05:00
|
|
|
mod pem;
|
2017-02-22 02:45:28 -05:00
|
|
|
mod serialization;
|
2017-04-11 01:41:44 -04:00
|
|
|
mod validation;
|
2016-04-02 06:41:35 -04:00
|
|
|
|
2019-06-16 11:51:43 -04:00
|
|
|
pub use algorithms::Algorithm;
|
2021-09-28 04:04:51 -04:00
|
|
|
pub use decoding::{decode, decode_header, DecodingKey, TokenData};
|
2019-12-29 12:42:35 -05:00
|
|
|
pub use encoding::{encode, EncodingKey};
|
2017-08-25 04:48:53 -04:00
|
|
|
pub use header::Header;
|
2021-02-19 15:08:30 -05:00
|
|
|
pub use validation::{get_current_timestamp, Validation};
|