MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / generateKeypair

Function generateKeypair

apps/cloud/src/auth/workos.node.test.ts:48–52  ·  view source on GitHub ↗
(kid: string)

Source from the content-addressed store, hash-verified

46}
47
48const generateKeypair = async (kid: string): Promise<Keypair> => {
49 const { publicKey, privateKey } = await generateKeyPair("RS256");
50 const jwk = await exportJWK(publicKey);
51 return { kid, publicJwk: { ...jwk, kid, alg: "RS256" }, privateKey };
52};
53
54const signAccessToken = (
55 keypair: Keypair,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected