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