MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / mfa.service.test.ts

File mfa.service.test.ts

apps/api/tests/api/auth/services/mfa.service.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { beforeEach, describe, expect, test } from "bun:test";
2import { Secret, TOTP } from "otpauth";
3
4import { mfaService } from "../../../../src/api/auth/services/mfa.service";

Callers

nothing calls this directly

Calls 15

requireDbFunction · 0.90
cleanDatabaseFunction · 0.90
seedVerifiedUserFunction · 0.90
decryptStringFunction · 0.85
enrollMfaFunction · 0.85
generateTotpForUserFunction · 0.85
setupMethod · 0.80
verifySetupMethod · 0.80
updateMethod · 0.80
issueChallengeMethod · 0.80
verifyTotpLoginMethod · 0.80
verifyRecoveryLoginMethod · 0.80

Tested by

no test coverage detected