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;
|
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;
|
2020-06-30 13:50:45 -04:00
|
|
|
pub use decoding::{
|
2020-08-31 06:04:57 -04:00
|
|
|
dangerous_insecure_decode, dangerous_insecure_decode_with_validation, decode, decode_header,
|
2021-02-19 15:20:47 -05:00
|
|
|
verify_signature, DecodingKey, TokenData,
|
2020-06-30 13:50:45 -04:00
|
|
|
};
|
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};
|