[][src]Module paseto::tokens

Provides a "nice" wrapper around paseto tokens in order to check things such as "Expiration". Issuer, etc.

Re-exports

pub use self::builder::*;

Modules

builder

Enums

PasetoPublicKey

Wraps the two paseto public key types so we can just have a validate_public_token method without splitting the two implementations.

TimeBackend

Specifies which time crate will be used as backend for validating a token's datetimes, i.e. issued_at. The available backends are Chrono and Time, the can be enabled via the features easy_tokens_chrono and easy_tokens_time. The default feature and backend is Chrono.

Functions

validate_local_token

Validate a local token for V1, or V2.

validate_potential_json_blob

Validates a potential json data blob, returning a JsonValue.

validate_public_token

Validate a public token for V1, or V2.