Skip to content

basalt / auth/src / generateTotpSecret

Function: generateTotpSecret() ​

> generateTotpSecret(bytes?): string

Defined in: auth/src/totp.ts:42

A fresh, random base32 TOTP secret (default 20 bytes = 160 bits).

Parameters ​

bytes? ​

number = 20

Returns ​

string

Released under the MIT License.