pub fn encode_es256(
claims: &impl Serialize,
private_key_pem: &str,
) -> Result<String, JwtError>Expand description
Encode a claims struct as an ES256 JWT (P-256 ECDSA, PKCS#8 PEM key).
ยงErrors
Returns JwtError::Invalid for PEM parse or signing failures.