@levminer/speakeasy
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -37,3 +37,5 @@ const base32 = require("base32.js") | ||
// convert secret to buffer | ||
secret = encoding === "base32" ? Buffer.alloc(base32.decode(secret)) : Buffer.alloc(secret, encoding) | ||
if (!Buffer.isBuffer(secret)) { | ||
secret = encoding === "base32" ? Buffer.alloc(base32.decode(secret)) : Buffer.alloc(secret, encoding) | ||
} | ||
@@ -40,0 +42,0 @@ let secret_buffer_size |
{ | ||
"name": "@levminer/speakeasy", | ||
"description": "Two-factor authentication for Node.js. Generate One-time passcode generator (HOTP/TOTP) with support for Google Authenticator.", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"homepage": "http://github.com/Levminer/speakeasy", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/Levminer/speakeasy/issues", |
@@ -39,2 +39,4 @@ # @levminer/speakeasy | ||
<a name="#two-factor"></a> | ||
## Two-Factor Usage | ||
@@ -41,0 +43,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
86847
670
749