decode_jwt

Function decode_jwt 

Source
pub fn decode_jwt(
    jwt: &str,
    verifier: &dyn Verifier,
) -> Result<(JwtHeader, Value)>
Expand description

Decode a JWT with signature verification.

Validates that the header alg matches the verifier’s algorithm, verifies the signature, then returns the header and claims.