pub fn verify_jwt_rs256(
token: &str,
public_key: &RsaPublicKey,
) -> Option<Claims>Available on crate features
auth-asymmetric and auth only.Expand description
Verify a JWT signed with RS256 (RSASSA-PKCS1-v1_5 using SHA-256) against an RSA public key.
Returns Claims on success. Returns None on any failure: bad format,
a header alg other than "RS256", signature mismatch, or an expired
exp claim.