[−][src]Function paseto_wasi07::tokens::validate_public_token
pub fn validate_public_token(
token: &str,
footer: Option<&str>,
key: &PasetoPublicKey
) -> Result<JsonValue, Error>
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.