personal web client for Bluesky
typescript solidjs bluesky atcute

fix: include jkt

mary.my.id a559bd99 325fb21b

verified
+4 -1
+1
server/index.ts
··· 97 client_id: `https://${url.host}/oauth-client-metadata.json`, 98 kid: privateKeyId, 99 aud: aud, 100 }); 101 102 return json({
··· 97 client_id: `https://${url.host}/oauth-client-metadata.json`, 98 kid: privateKeyId, 99 aud: aud, 100 + jkt: jkt, 101 }); 102 103 return json({
+3 -1
server/jwt.ts
··· 164 kid: string; 165 client_id: string; 166 aud: string; 167 privateKey: CryptoKey; 168 }): Promise<string> => { 169 - const { kid, client_id, aud, privateKey } = options; 170 171 const now = Math.floor(Date.now() / 1000); 172 ··· 183 jti: crypto.randomUUID(), 184 iat: now, 185 exp: now + 60, 186 }; 187 188 const message = `${encodeJwtPortion(header)}.${encodeJwtPortion(payload)}`;
··· 164 kid: string; 165 client_id: string; 166 aud: string; 167 + jkt: string; 168 privateKey: CryptoKey; 169 }): Promise<string> => { 170 + const { kid, client_id, aud, jkt, privateKey } = options; 171 172 const now = Math.floor(Date.now() / 1000); 173 ··· 184 jti: crypto.randomUUID(), 185 iat: now, 186 exp: now + 60, 187 + cnf: { jkt }, 188 }; 189 190 const message = `${encodeJwtPortion(header)}.${encodeJwtPortion(payload)}`;