Function paseto::tokens::validate_local_token
[−]
[src]
pub fn validate_local_token(
token: String,
footer: Option<String>,
key: Vec<u8>
) -> Result<JsonValue>
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.