Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm
75
fork

Configure Feed

Select the types of activity you want to include in your feed.

put the kid in the header

so that later jose knows which key to try (it will not just try them all)

phil 986819f9 1bf861a9

+5 -5
+5 -5
who-am-i/src/jwt.rs
··· 74 74 let dt_exp = dt_now + Duration::from_secs(30 * 86_400); 75 75 let exp = dt_exp.as_secs(); 76 76 77 - Ok(encode( 78 - &Header::new(Algorithm::ES256), 79 - &Claims { sub, exp }, 80 - &self.encoding_key, 81 - )?) 77 + let mut header = Header::new(Algorithm::ES256); 78 + header.kid = Some("who-am-i-00".to_string()); 79 + // todo: consider setting jku? 80 + 81 + Ok(encode(&header, &Claims { sub, exp }, &self.encoding_key)?) 82 82 } 83 83 84 84 pub fn jwk(&self) -> Jwk {