@startupjs/2fa-push-notification-provider v0.55.8
@startupjs/2fa-push-notification-provider
Provider for verification via @startupjs/push-notification.
Dependencies
@startupjs/2fa-manager >= 0.35.10,
@startupjs/push-notification >= 0.35.10Installation
yarn add @startupjs/2fa-push-notification-providerIMPORTANT: 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 theproviders 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' }]
]
})12 months ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago