{"version":3,"file":"otp-sink.mjs","names":[],"sources":["../../../src/plugins/test-utils/otp-sink.ts"],"sourcesContent":["/**\n * Creates an instance-scoped OTP store for capturing OTPs during testing.\n * Each auth instance gets its own store to avoid cross-contamination.\n */\nexport function createOTPStore() {\n\tconst otpStore = new Map<string, string>();\n\n\treturn {\n\t\tcapture(identifier: string, otp: string): void {\n\t\t\totpStore.set(identifier, otp);\n\t\t},\n\t\tget(identifier: string): string | undefined {\n\t\t\treturn otpStore.get(identifier);\n\t\t},\n\t\tclear(): void {\n\t\t\totpStore.clear();\n\t\t},\n\t};\n}\n"],"mappings":";;;;;AAIA,SAAgB,iBAAiB;CAChC,MAAM,2BAAW,IAAI,KAAqB;AAE1C,QAAO;EACN,QAAQ,YAAoB,KAAmB;AAC9C,YAAS,IAAI,YAAY,IAAI;;EAE9B,IAAI,YAAwC;AAC3C,UAAO,SAAS,IAAI,WAAW;;EAEhC,QAAc;AACb,YAAS,OAAO;;EAEjB"}