React Native Firebase
Documentation
GitHub
npm
Preparing search index...
@react-native-firebase/auth
FirebaseAuthTypes
TotpMultiFactorGenerator
Interface TotpMultiFactorGenerator
interface
TotpMultiFactorGenerator
{
FACTOR_ID
:
TOTP
;
assertionForEnrollment
(
secret
:
FirebaseAuthTypes
.
TotpSecret
,
code
:
string
,
)
:
FirebaseAuthTypes
.
MultiFactorAssertion
;
assertionForSignIn
(
uid
:
string
,
totpSecret
:
string
,
)
:
FirebaseAuthTypes
.
MultiFactorAssertion
;
generateSecret
(
session
:
FirebaseAuthTypes
.
MultiFactorSession
,
auth
?:
FirebaseAuthTypes
.
Module
,
)
:
Promise
<
FirebaseAuthTypes
.
TotpSecret
>
;
}
Index
Methods
assertion
For
Enrollment
assertion
For
Sign
In
generate
Secret
Properties
FACTOR_
ID
Methods
assertion
For
Enrollment
assertionForEnrollment
(
secret
:
FirebaseAuthTypes
.
TotpSecret
,
code
:
string
,
)
:
FirebaseAuthTypes
.
MultiFactorAssertion
Parameters
secret
:
FirebaseAuthTypes
.
TotpSecret
code
:
string
Returns
FirebaseAuthTypes
.
MultiFactorAssertion
assertion
For
Sign
In
assertionForSignIn
(
uid
:
string
,
totpSecret
:
string
,
)
:
FirebaseAuthTypes
.
MultiFactorAssertion
Parameters
uid
:
string
totpSecret
:
string
Returns
FirebaseAuthTypes
.
MultiFactorAssertion
generate
Secret
generateSecret
(
session
:
FirebaseAuthTypes
.
MultiFactorSession
,
auth
?:
FirebaseAuthTypes
.
Module
,
)
:
Promise
<
FirebaseAuthTypes
.
TotpSecret
>
Parameters
session
:
FirebaseAuthTypes
.
MultiFactorSession
Optional
auth
:
FirebaseAuthTypes
.
Module
The Auth instance. Only used for native platforms, should be ignored on web.
Returns
Promise
<
FirebaseAuthTypes
.
TotpSecret
>
Properties
FACTOR_
ID
FACTOR_ID
:
TOTP
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Methods
assertion
For
Enrollment
assertion
For
Sign
In
generate
Secret
Properties
FACTOR_
ID
Documentation
Documentation
GitHub
npm
React Native Firebase
Loading...
The Auth instance. Only used for native platforms, should be ignored on web.