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