Skip to content

basalt / auth/src / VerifyTotpOptions

Interface: VerifyTotpOptions ​

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

Extends ​

Properties ​

digits? ​

> optional digits?: number

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

Code length. Default 6.

Inherited from ​

TotpOptions.digits


now? ​

> optional now?: number

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

Milliseconds since epoch. Default Date.now().

Inherited from ​

TotpOptions.now


period? ​

> optional period?: number

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

Seconds per code. Default 30.

Inherited from ​

TotpOptions.period


window? ​

> optional window?: number

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

Accept codes ±window steps to absorb clock drift. Default 1.

Released under the MIT License.