Skip to content

otplib API Documentation / @otplib/core / validateTime

Function: validateTime()

validateTime(time): void

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

Validate time value

Parameters

time

number

The time in seconds to validate

Returns

void

Throws

If time is negative

Released under the MIT License.