Skip to content

Commit 1d5646e

Browse files
committed
Fix ToTP typings issue
1 parent 3fe7597 commit 1d5646e

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

common/api-review/auth.api.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,8 +754,7 @@ export interface TotpMultiFactorAssertion extends MultiFactorAssertion {
754754
export class TotpMultiFactorGenerator {
755755
static assertionForEnrollment(secret: TotpSecret, oneTimePassword: string): TotpMultiFactorAssertion;
756756
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";
759758
static generateSecret(session: MultiFactorSession): Promise<TotpSecret>;
760759
}
761760

docs-devsite/auth.totpmultifactorgenerator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export declare class TotpMultiFactorGenerator
2222

2323
| Property | Modifiers | Type | Description |
2424
| --- | --- | --- | --- |
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>. |
2626

2727
## Methods
2828

@@ -39,7 +39,7 @@ The identifier of the TOTP second factor: `totp`<!-- -->.
3939
<b>Signature:</b>
4040

4141
```typescript
42-
static FACTOR_ID: FactorId;
42+
static FACTOR_ID: "totp";
4343
```
4444

4545
## TotpMultiFactorGenerator.assertionForEnrollment()

packages/auth/src/mfa/assertions/totp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export class TotpMultiFactorGenerator {
107107
/**
108108
* The identifier of the TOTP second factor: `totp`.
109109
*/
110-
static FACTOR_ID = FactorId.TOTP;
110+
static FACTOR_ID: 'totp' = FactorId.TOTP;
111111
}
112112

113113
export class TotpMultiFactorAssertionImpl

0 commit comments

Comments
 (0)