Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
import
{ beforeEach, describe, expect, test } from
"bun:test"
;
2
import
{ Secret, TOTP } from
"otpauth"
;
3
4
import
{ mfaService } from
"../../../../src/api/auth/services/mfa.service"
;
Callers
nothing calls this directly
Calls
15
requireDb
Function · 0.90
cleanDatabase
Function · 0.90
seedVerifiedUser
Function · 0.90
decryptString
Function · 0.85
enrollMfa
Function · 0.85
generateTotpForUser
Function · 0.85
setup
Method · 0.80
verifySetup
Method · 0.80
update
Method · 0.80
issueChallenge
Method · 0.80
verifyTotpLogin
Method · 0.80
verifyRecoveryLogin
Method · 0.80
Tested by
no test coverage detected