WIP: Another at:// production from me
1// forked from https://github.com/bluesky-social/statusphere-example-app/blob/main/bin/gen-jwk
2
3import { JoseKey } from '@atproto/oauth-client-node';
4
5
6async function main() {
7 const kid = Date.now().toString();
8 const key = await JoseKey.generate(['ES256'], kid);
9 const jwk = key.privateJwk;
10 console.log(JSON.stringify([jwk]));
11}
12
13await main();