X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=lib%2Fhotp.js;fp=lib%2Fhotp.js;h=5e20ec6b8ea9bdf29cd66bf5e7f0163dd6f9f547;hb=6329c254c95a9097a37018c5c4f8d2d010679e59;hp=0e20145e4c2c11aec6c9e84bcbb6b48851a68ae2;hpb=6a9f46756e1eec12c0d508205e2420bf92ae4d50;p=squeep-totp diff --git a/lib/hotp.js b/lib/hotp.js index 0e20145..5e20ec6 100644 --- a/lib/hotp.js +++ b/lib/hotp.js @@ -134,7 +134,7 @@ class HMACBasedOneTimePassword { * Make a new key, of the assigned encoding. * @param {String=} encoding * @param {String=} algorithm - * @returns {String|Buffer} + * @returns {Promise} */ static async createKey(algorithm = 'sha1', encoding = 'hex') { const key = await randomBytesAsync(this._algorithmKeyLength(algorithm));