Skip to content

Commit 4513d7c

Browse files
committed
chorel remove unused Claims struct
1 parent c4f035d commit 4513d7c

File tree

1 file changed

+0
-10
lines changed
  • crates/rust-mcp-sdk/src/auth/spec

1 file changed

+0
-10
lines changed

crates/rust-mcp-sdk/src/auth/spec/jwk.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,6 @@ pub struct JsonWebKeySet {
1010
pub keys: Vec<Jwk>,
1111
}
1212

13-
#[derive(Debug, Serialize, Deserialize, Clone)]
14-
struct Claims {
15-
aud: Option<String>, // Optional. Audience
16-
exp: usize, // Required (validate_exp defaults to true in validation). Expiration time (as UTC timestamp)
17-
iat: Option<usize>, // Optional. Issued at (as UTC timestamp)
18-
iss: Option<String>, // Optional. Issuer
19-
nbf: Option<usize>, // Optional. Not Before (as UTC timestamp)
20-
sub: Option<String>, // Optional. Subject (whom token refers to)
21-
}
22-
2313
pub fn decode_token_header(token: &str) -> Result<jsonwebtoken::Header, AuthenticationError> {
2414
let header =
2515
decode_header(token).map_err(|err| AuthenticationError::TokenVerificationFailed {

0 commit comments

Comments
 (0)