use JwtClaims;
use ;
/// Parse a JWT token and extract claims from the payload without verifying
/// the signature.
///
/// This helper is only suitable for attaching informational claims that come
/// from a token that has already been authenticated by some other mechanism.
/// Do not treat a successful decode as proof that the token is trustworthy.
///
/// # Examples
///
/// ```rust
/// use codetether_agent::server::auth::extract_unverified_jwt_claims;
///
/// let token = "aaa.eyJ0b3BpY3MiOlsiYWdlbnQuYWxwaGEiXSwic3ViIjoid29ya2VyLTEiLCJzY29wZXMiOlsiYnVzOnJlYWQiXX0.ccc";
/// let claims = extract_unverified_jwt_claims(token).expect("claims should decode");
///
/// assert_eq!(claims.subject.as_deref(), Some("worker-1"));
/// assert_eq!(claims.topics, vec!["agent.alpha"]);
/// ```