projects
/
squeep-totp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix empty issuer in uri
[squeep-totp]
/
lib
/
hotp.js
diff --git
a/lib/hotp.js
b/lib/hotp.js
index 0e20145e4c2c11aec6c9e84bcbb6b48851a68ae2..7741a19fc9ae4e3dc5d6511dc7a1905d16b2cb9a 100644
(file)
--- 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
* 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));
*/
static async createKey(algorithm = 'sha1', encoding = 'hex') {
const key = await randomBytesAsync(this._algorithmKeyLength(algorithm));
@@
-277,6
+277,7
@@
class HMACBasedOneTimePassword {
static get _qrURIDefaultOptions() {
return {
static get _qrURIDefaultOptions() {
return {
+ issuer: '',
scheme: 'otpauth',
type: this._type,
};
scheme: 'otpauth',
type: this._type,
};