Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@startupjs/2fa-push-notification-provider

Package Overview
Dependencies
Maintainers
6
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@startupjs/2fa-push-notification-provider

Push notification provider for @startupjs/2fa-manager package

  • 0.55.8
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by33.33%
Maintainers
6
Weekly downloads
 
Created
Source

@startupjs/2fa-push-notification-provider

Provider for verification via @startupjs/push-notification.

Dependencies

@startupjs/2fa-manager >= 0.35.10,
@startupjs/push-notification >= 0.35.10

Installation

  yarn add @startupjs/2fa-push-notification-provider

IMPORTANT: To use this package, you need to include the @startupjs/push-notification package as specified in the documentation.

Using

You need to import the PushProvider component from @startupjs/2fa-push-notification-provider.

import { PushProvider } from '@startupjs/2fa-push-notification-provider'

Then you need to add PushProvider to the providers array of initTwoFAManager. The second argument of the array is the options for the provider. Here you can set the optional codeMaxAge parameter, this time during which the code is considered valid. By default, codeMaxAge = 30000

initTwoFAManager(ee, {
  providers: [
    [PushProvider, { codeMaxAge: 'YOUR_TIME_IN_MS' }]
  ]
})

FAQs

Package last updated on 16 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc