Function: isValidTOTPSecret()
isValidTOTPSecret(
secret):Promise<boolean>
Defined in: src/auth/shared.ts:470
Determines if the given value is usable as a TOTP secret: a Base32-encoded string decoding to at least 128 bits, the minimum shared secret length mandated by RFC 4226 §4 (R6) (which RFC 6238 TOTP secrets must also satisfy, per RFC 6238 §5.1).
Parameters
secret
any
The value to check.
Returns
Promise<boolean>