File tree 4 files changed +9
-5
lines changed
packages/auth/src/mfa/assertions
4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @firebase/auth ' : patch
3
+ ---
4
+
5
+ Fix typings for ` TotpMultiFactorGenerator ` . This fixes a reversion in 9.19.0.
Original file line number Diff line number Diff line change @@ -754,8 +754,7 @@ export interface TotpMultiFactorAssertion extends MultiFactorAssertion {
754
754
export class TotpMultiFactorGenerator {
755
755
static assertionForEnrollment(secret : TotpSecret , oneTimePassword : string ): TotpMultiFactorAssertion ;
756
756
static assertionForSignIn(enrollmentId : string , oneTimePassword : string ): TotpMultiFactorAssertion ;
757
- // Warning: (ae-forgotten-export) The symbol "FactorId" needs to be exported by the entry point index.d.ts
758
- static FACTOR_ID: FactorId_2 ;
757
+ static FACTOR_ID: " totp" ;
759
758
static generateSecret(session : MultiFactorSession ): Promise <TotpSecret >;
760
759
}
761
760
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export declare class TotpMultiFactorGenerator
22
22
23
23
| Property | Modifiers | Type | Description |
24
24
| --- | --- | --- | --- |
25
- | [FACTOR \_ID ](./auth .totpmultifactorgenerator .md #totpmultifactorgeneratorfactor_id ) | <code >static </code > | FactorId | The identifier of the TOTP second factor : <code >totp </code >. |
25
+ | [FACTOR \_ID ](./auth .totpmultifactorgenerator .md #totpmultifactorgeneratorfactor_id ) | <code >static </code > | ' totp ' | The identifier of the TOTP second factor : <code >totp </code >. |
26
26
27
27
## Methods
28
28
@@ -39,7 +39,7 @@ The identifier of the TOTP second factor: `totp`<!-- -->.
39
39
<b >Signature :</b >
40
40
41
41
```typescript
42
- static FACTOR_ID : FactorId ;
42
+ static FACTOR_ID : ' totp ' ;
43
43
```
44
44
45
45
## TotpMultiFactorGenerator .assertionForEnrollment ()
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ export class TotpMultiFactorGenerator {
107
107
/**
108
108
* The identifier of the TOTP second factor: `totp`.
109
109
*/
110
- static FACTOR_ID = FactorId . TOTP ;
110
+ static FACTOR_ID : 'totp' = FactorId . TOTP ;
111
111
}
112
112
113
113
export class TotpMultiFactorAssertionImpl
You can’t perform that action at this time.
0 commit comments