Socket
Socket
Sign inDemoInstall

2fa-util

Package Overview
Dependencies
37
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

1

index.test.js

@@ -19,3 +19,2 @@ const {authenticator} = require('otplib');

it('does not specify the issuer in the otpauth url if not provided', async () => {
const asdf = await generateSecret('John Doe', 'Company');
const {otpauth} = await generateSecret('foobar');

@@ -22,0 +21,0 @@ expect(otpauth).toMatch(/otpauth:\/\/totp\/foobar:foobar\?secret=(.+)&period=30&digits=6&algorithm=SHA1/);

2

package.json
{
"name": "2fa-util",
"version": "1.0.1",
"version": "1.0.2",
"description": "Lightweight utility to generate a two-factor TOTP secret with QR code to be used by authenticators such as Google or Microsoft Authenticator.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc