Skip to main content

encode_es256

Function encode_es256 

Source
pub fn encode_es256(claims: &Claims, signing_key: &SigningKey) -> String
Expand description

Encode and sign an OAuth 2.0 access token with ES256 (P-256 ECDSA).

Produces a standard at+jwt with alg: "ES256" in the JOSE header. The kid is the RFC 7638 JWK Thumbprint of the P-256 public key. Automatically assigns a jti if not already set.