Function paseto::tokens::validate_local_token [−][src]
pub fn validate_local_token(
token: &str,
footer: Option<&str>,
key: &[u8],
backend: &TimeBackend
) -> Result<JsonValue, Error>
Expand description
Validate a local token for V1, or V2.
This specifically validates:
- issued_at
- expired
- not_before
This specifically does not validate:
- audience
- jti
- issuedBy
- subject
Because we validate these fields the resulting type must be a json object. If it’s not please use the protocol impls directly.