projects
/
squeep-totp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fcdd9aa
)
pass more options to qr creation
author
Justin Wind
<justin.wind+git@gmail.com>
Thu, 7 Mar 2024 20:18:13 +0000
(12:18 -0800)
committer
Justin Wind
<justin.wind+git@gmail.com>
Thu, 7 Mar 2024 20:18:13 +0000
(12:18 -0800)
lib/hotp.js
patch
|
blob
|
history
diff --git
a/lib/hotp.js
b/lib/hotp.js
index e93f7203c41ce04ce38ba4d84182471913db00a5..0e20145e4c2c11aec6c9e84bcbb6b48851a68ae2 100644
(file)
--- a/
lib/hotp.js
+++ b/
lib/hotp.js
@@
-172,6
+172,9
@@
class HMACBasedOneTimePassword {
* @param {String=} options.svgFg
* @param {String=} options.svgBg
* @param {String=} options.svgEcl
* @param {String=} options.svgFg
* @param {String=} options.svgBg
* @param {String=} options.svgEcl
+ * @param {Boolean=} options.join
+ * @param {Boolean=} options.xmlDeclaration
+ * @param {String=} options.container
* @param {String|Buffer} key
* @param {String=} keyEncoding
* @returns {OtpAuthData}
* @param {String|Buffer} key
* @param {String=} keyEncoding
* @returns {OtpAuthData}
@@
-206,6
+209,9
@@
class HMACBasedOneTimePassword {
color: options.svgFg || '#000000',
background: options.svgBg || '#ffffff',
ecl: options.svgEcl || 'M',
color: options.svgFg || '#000000',
background: options.svgBg || '#ffffff',
ecl: options.svgEcl || 'M',
+ join: options.join ?? true,
+ xmlDeclaration: options.xmlDeclaration ?? false,
+ container: options.container || 'svg-viewbox',
});
return {
});
return {
@@
-278,4
+284,4
@@
class HMACBasedOneTimePassword {
}
}
-module.exports = HMACBasedOneTimePassword;
\ No newline at end of file
+module.exports = HMACBasedOneTimePassword;