Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Openpanel-dev/openpanel
/ normalizeRecoveryCode
Function
normalizeRecoveryCode
packages/auth/src/totp.ts:81–83 ·
view source on GitHub ↗
(input: string)
Source
from the content-addressed store, hash-verified
79
}
80
81
export
function
normalizeRecoveryCode(input: string): string {
82
return
input.trim().toUpperCase().replace(/\s+/g,
''
);
83
}
84
85
export
async
function
consumeRecoveryCode({
86
hashes,
Callers
2
hashRecoveryCodes
Function · 0.85
consumeRecoveryCode
Function · 0.85
Calls
1
replace
Method · 0.80
Tested by
no test coverage detected