Skip to content

otplib API Documentation / @otplib/core / utils / validateTime

Function: validateTime() ​

validateTime(time): void

Defined in: packages/core/src/utils.ts:515

Validate time value

Parameters ​

time ​

number

The time in seconds to validate

Returns ​

void

Throws ​

If time is negative

Released under the MIT License.