MCPcopy 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
81export function normalizeRecoveryCode(input: string): string {
82 return input.trim().toUpperCase().replace(/\s+/g, '');
83}
84
85export async function consumeRecoveryCode({
86 hashes,

Callers 2

hashRecoveryCodesFunction · 0.85
consumeRecoveryCodeFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected