MCPcopy Create free account
hub / github.com/Keats/jsonwebtoken / iss_array_of_string_ok

Function iss_array_of_string_ok

src/validation.rs:599–607  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

597 #[test]
598 #[wasm_bindgen_test]
599 fn iss_array_of_string_ok() {
600 let claims = json!({"iss": ["UserA", "UserB"]});
601 let mut validation = Validation::new(Algorithm::HS256);
602 validation.required_spec_claims = HashSet::new();
603 validation.validate_exp = false;
604 validation.set_issuer(&["UserA", "UserB"]);
605 let res = validate(deserialize_claims(&claims), &validation);
606 assert!(res.is_ok());
607 }
608
609 #[test]
610 #[wasm_bindgen_test]

Callers

nothing calls this directly

Calls 3

validateFunction · 0.85
deserialize_claimsFunction · 0.85
set_issuerMethod · 0.80

Tested by

no test coverage detected