minor doc update
[squeep-totp] / lib / hotp.js
index 0e20145e4c2c11aec6c9e84bcbb6b48851a68ae2..5e20ec6b8ea9bdf29cd66bf5e7f0163dd6f9f547 100644 (file)
@@ -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<String|Buffer>}
    */
   static async createKey(algorithm = 'sha1', encoding = 'hex') {
     const key = await randomBytesAsync(this._algorithmKeyLength(algorithm));