MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / header_is_eddsa_jwt_with_kid

Function header_is_eddsa_jwt_with_kid

atomic-remote/src/auth/token.rs:232–240  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230
231 #[test]
232 fn header_is_eddsa_jwt_with_kid() {
233 let header = JwtHeader {
234 alg: "EdDSA",
235 typ: "JWT",
236 kid: "ABCDEF".to_string(),
237 };
238 let json = serde_json::to_string(&header).unwrap();
239 assert_eq!(json, r#"{"alg":"EdDSA","typ":"JWT","kid":"ABCDEF"}"#);
240 }
241
242 /// A human's token must not carry `act`/`dlg` at all — not `null`. The
243 /// server distinguishes "delegated" from "not" by the claim's presence, so

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected