Fields that are not applicable to a credential type are set to sentinel
values: -1 for HOTP numeric timing fields and 0.0 / 0 for HOTP
progress/period fields.
Example
constinfo = awaitclient.generateCodeWithValidity('my-totp-id'); console.log(`OTP: ${info.code} — valid for ${info.timeRemaining}s`);
OTP code along with timing and validity metadata returned by OathClient.generateCodeWithValidity.
Remarks
Fields that are not applicable to a credential type are set to sentinel values:
-1for HOTP numeric timing fields and0.0/0for HOTP progress/period fields.Example