(value: serde_json::Value)
| 310 | } |
| 311 | |
| 312 | fn to_hashmap(value: serde_json::Value) -> HashMap<Box<str>, serde_json::Value> { |
| 313 | let mut map = HashMap::new(); |
| 314 | value.as_object().unwrap().iter().for_each(|(k, v)| { |
| 315 | map.insert(k.clone().into(), v.clone()); |
| 316 | }); |
| 317 | map |
| 318 | } |
| 319 | |
| 320 | // Make sure that when we encode TokenClaims, we can decode the extra claims. |
| 321 | #[tokio::test] |