tangled
alpha
login
or
join now
mary.my.id
/
aglais
4
fork
atom
personal web client for Bluesky
typescript
solidjs
bluesky
atcute
4
fork
atom
overview
issues
pulls
pipelines
fix: include jkt
mary.my.id
1 month ago
a559bd99
325fb21b
verified
This commit was signed with the committer's
known signature
.
mary.my.id
SSH Key Fingerprint:
SHA256:ZlTP/auFSGpGnaoDg4mCTG1g9OZvXp62jWR4c6H4O3c=
+4
-1
2 changed files
expand all
collapse all
unified
split
server
index.ts
jwt.ts
+1
server/index.ts
···
97
97
client_id: `https://${url.host}/oauth-client-metadata.json`,
98
98
kid: privateKeyId,
99
99
aud: aud,
100
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
167
+
jkt: string;
167
168
privateKey: CryptoKey;
168
169
}): Promise<string> => {
169
169
-
const { kid, client_id, aud, privateKey } = options;
170
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
187
+
cnf: { jkt },
186
188
};
187
189
188
190
const message = `${encodeJwtPortion(header)}.${encodeJwtPortion(payload)}`;