Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boringstack-xyz/boringstack
/ mfa.routes.test.ts
File
mfa.routes.test.ts
apps/api/tests/api/auth/mfa.routes.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
{
Callers
nothing calls this directly
Calls
12
requireDb
Function · 0.90
cleanDatabase
Function · 0.90
seedVerifiedUser
Function · 0.90
createApp
Function · 0.90
enrollViaService
Function · 0.85
isMfaRequired
Function · 0.85
totpFor
Function · 0.85
isAuth
Function · 0.85
verifyWithWrongCode
Function · 0.85
verifyWithWrongRecoveryCode
Function · 0.85
uniqueEmail
Function · 0.70
get
Method · 0.45
Tested by
no test coverage detected