X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Ftotp.js;h=15aa01e26e3ec13509b83060be109c527b907197;hb=e6793fe68b6066fa5672eda73a5dd76c7c6f48b9;hp=a1d2fce6820afffc3a2d892565262666897f6363;hpb=0f47cb65da1c1619c998f9c4cd297279d647bf9c;p=squeep-totp diff --git a/lib/totp.js b/lib/totp.js index a1d2fce..15aa01e 100644 --- a/lib/totp.js +++ b/lib/totp.js @@ -19,7 +19,7 @@ class TimeBasedOneTimePassword extends HOTP { const _options = { ...options }; super(_options); this.driftOffsets = [ - 0n, // check now first + 0n, // Check now first ...Array.from({ length: this.driftBackward }, (v, k) => BigInt(-(k + 1))), ...Array.from({ length: this.driftForward }, (v, k) => BigInt(k + 1)), ]; @@ -48,7 +48,7 @@ class TimeBasedOneTimePassword extends HOTP { return BigInt(Math.floor((epoch - this.timeStepStartSeconds) / this.timeStepSeconds)); } - set counter(_) { /* ignore assignment */ } // eslint-disable-line class-methods-use-this + set counter(_) { /* Ignore assignment */ } // eslint-disable-line class-methods-use-this static get _defaultOptions() { const options = Object.assign(super._defaultOptions, {