Function decode_only
Source pub fn decode_only(token: &str) -> Result<DecodedJwt, Error>
Expand description
Decodes a JWT without verifying the signature.
This is useful when you only need to read the claims from the JWT.
§Arguments
token
- The encoded JWT string.
§Returns
Returns a DecodedJwt
structure containing the header and payload if successful,
or an Error
if decoding fails.