@startupjs/2fa-totp-authentication-provider v0.55.8
@startupjs/2fa-totp-authentication-provider
Provider for verification via google authenticator app.
Dependencies
@startupjs/2fa-manager >= 0.34.0,
@startupjs/2fa-totp-authentication >= 0.34.0Installation
yarn add @startupjs/2fa-totp-authentication-providerIMPORTANT: To use this method, in advance, the user must provide a secret in the form of a QR code, which he will add to the google-authenticator. More on this in the google-authenticator documentation
Using
You need to import the GAProvider component from @startupjs/2fa-totp-authentication-provider.
import { GAProvider } from '@startupjs/2fa-totp-authentication-provider'Then you need to add GAProvider to theproviders array of initTwoFAManager. The second argument of the array is the options for the provider. TotpProvider expects an application name, this name will be displayed in the google authenticator interface.
You can get the name of the application from app.json, usually this file is located in the root of the project:
import app from 'path/to/your/app.json'
...
initTwoFAManager(ee, {
providers: [
[TotpProvider, { appName: app.name }]
]
})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
4 years ago
4 years ago