From 6329c254c95a9097a37018c5c4f8d2d010679e59 Mon Sep 17 00:00:00 2001 From: Justin Wind Date: Fri, 8 Mar 2024 15:51:02 -0800 Subject: [PATCH] minor doc update --- .npmrc | 1 + lib/hotp.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..258cd85 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +message="bump package version to %s" 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)); -- 2.44.2