Skip to main content

encode

Function encode 

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

Encode a user/client OAuth 2.0 access token (typ: "at+jwt", RFC 9068). Includes kid in the JOSE header for key rotation support. Automatically assigns a jti if the claims don’t already have one.