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

Function key

apps/cloud/src/auth/admin-mfa-proof.ts:32–32  ·  view source on GitHub ↗
(secret: string)

Source from the content-addressed store, hash-verified

30type Purpose = "challenge" | "verified";
31const issuer = (purpose: Purpose) => `executor:admin-mfa:${purpose}`;
32const key = (secret: string) => new TextEncoder().encode(secret);
33
34/** Sign a purpose-specific, session-bound proof with an explicit expiration. */
35export const signAdminMfaProof = (

Callers 2

signAdminMfaProofFunction · 0.85
readAdminMfaProofFunction · 0.85

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected