Function paseto::tokens::validate_public_token
[−]
[src]
pub fn validate_public_token(
token: String,
footer: Option<String>,
key: PasetoPublicKey
) -> Result<JsonValue>
Validate a public 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.