[READ-ONLY] Mirror of https://github.com/flo-bit/svelte-cloudflare-statusphere.
statusphere.atmo.tools
atproto
cloudflare-workers
oauth
svelte
398 B
10 lines
1import { generateClientAssertionKey } from '@atcute/oauth-node-client';
2
3const key = await generateClientAssertionKey('main-key');
4const json = JSON.stringify(key);
5
6console.log('Generated client assertion key.\n');
7console.log('Set it as a Cloudflare Workers secret:\n');
8console.log(' npx wrangler secret put CLIENT_ASSERTION_KEY\n');
9console.log('Then paste this value:\n');
10console.log(json);