From 9ddf23a4e87c2e12bb088b9e88ce36676f944273 Mon Sep 17 00:00:00 2001 From: Justin Wind Date: Thu, 7 Mar 2024 12:18:13 -0800 Subject: [PATCH] pass more options to qr creation --- lib/hotp.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/hotp.js b/lib/hotp.js index e93f720..0e20145 100644 --- 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 {Boolean=} options.join + * @param {Boolean=} options.xmlDeclaration + * @param {String=} options.container * @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', + join: options.join ?? true, + xmlDeclaration: options.xmlDeclaration ?? false, + container: options.container || 'svg-viewbox', }); return { @@ -278,4 +284,4 @@ class HMACBasedOneTimePassword { } -module.exports = HMACBasedOneTimePassword; \ No newline at end of file +module.exports = HMACBasedOneTimePassword; -- 2.45.2