Skip to main content

parse_jwt

Function parse_jwt 

Source
pub fn parse_jwt(token: &str) -> Result<DecodedJwt, String>
Expand description

Parse a compact-serialized JWT into a DecodedJwt. RFC 7519 shape: <base64url(header)>.<base64url(payload)>.<base64url(signature)>. The validator does the heavy lifting (signature, claims, expiry); this function just splits + decodes.