Skip to content

Commit 07b88e6

Browse files
authored
[Auth] Add phone factor ID to the PhoneMultiFactorGenerator object (#5487)
* Add phone factor ID to the PhoneMultiFactorGenerator object * Api review * Add changeset
1 parent cd9ca9b commit 07b88e6

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.changeset/neat-pants-wonder.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@firebase/auth": patch
3+
---
4+
5+
Add missing phone FACTOR_ID static property to the PhoneMultiFactorGenerator class

common/api-review/auth.api.md

+1
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ export interface PhoneMultiFactorEnrollInfoOptions {
596596
// @public
597597
export class PhoneMultiFactorGenerator {
598598
static assertion(credential: PhoneAuthCredential): PhoneMultiFactorAssertion;
599+
static FACTOR_ID: string;
599600
}
600601

601602
// @public

packages/auth/src/platform_browser/mfa/assertions/phone.ts

+5
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,9 @@ export class PhoneMultiFactorGenerator {
9090
static assertion(credential: PhoneAuthCredential): PhoneMultiFactorAssertion {
9191
return PhoneMultiFactorAssertionImpl._fromCredential(credential);
9292
}
93+
94+
/**
95+
* The identifier of the phone second factor: `phone`.
96+
*/
97+
static FACTOR_ID = 'phone';
9398
}

0 commit comments

Comments
 (0)