@@ -20,18 +20,18 @@ export interface ActionCodeInfo {
20
20
multiFactorInfo? : MultiFactorInfo | null ;
21
21
previousEmail? : string | null ;
22
22
};
23
- operation: ActionCodeOperation ;
23
+ operation: typeof ActionCodeOperation [ keyof typeof ActionCodeOperation ] ;
24
24
}
25
25
26
26
// @public
27
- export const enum ActionCodeOperation {
28
- EMAIL_SIGNIN = " EMAIL_SIGNIN" ,
29
- PASSWORD_RESET = " PASSWORD_RESET" ,
30
- RECOVER_EMAIL = " RECOVER_EMAIL" ,
31
- REVERT_SECOND_FACTOR_ADDITION = " REVERT_SECOND_FACTOR_ADDITION" ,
32
- VERIFY_AND_CHANGE_EMAIL = " VERIFY_AND_CHANGE_EMAIL" ,
33
- VERIFY_EMAIL = " VERIFY_EMAIL"
34
- }
27
+ export const ActionCodeOperation: {
28
+ readonly EMAIL_SIGNIN: " EMAIL_SIGNIN" ;
29
+ readonly PASSWORD_RESET: " PASSWORD_RESET" ;
30
+ readonly RECOVER_EMAIL: " RECOVER_EMAIL" ;
31
+ readonly REVERT_SECOND_FACTOR_ADDITION: " REVERT_SECOND_FACTOR_ADDITION" ;
32
+ readonly VERIFY_AND_CHANGE_EMAIL: " VERIFY_AND_CHANGE_EMAIL" ;
33
+ readonly VERIFY_EMAIL: " VERIFY_EMAIL" ;
34
+ };
35
35
36
36
// @public
37
37
export interface ActionCodeSettings {
@@ -56,7 +56,7 @@ export class ActionCodeURL {
56
56
readonly code: string ;
57
57
readonly continueUrl: string | null ;
58
58
readonly languageCode: string | null ;
59
- readonly operation: ActionCodeOperation ;
59
+ readonly operation: string ;
60
60
static parseLink(link : string ): ActionCodeURL | null ;
61
61
readonly tenantId: string | null ;
62
62
}
@@ -239,9 +239,9 @@ export class FacebookAuthProvider extends BaseOAuthProvider {
239
239
}
240
240
241
241
// @public
242
- export const enum FactorId {
243
- PHONE = " phone"
244
- }
242
+ export const FactorId: {
243
+ readonly PHONE: " phone" ;
244
+ };
245
245
246
246
// @public
247
247
export function fetchSignInMethodsForEmail(auth : Auth , email : string ): Promise <string []>;
@@ -324,19 +324,19 @@ export function multiFactor(user: User): MultiFactorUser;
324
324
325
325
// @public
326
326
export interface MultiFactorAssertion {
327
- readonly factorId: FactorId ;
327
+ readonly factorId: typeof FactorId [ keyof typeof FactorId ] ;
328
328
}
329
329
330
330
// @public
331
331
export interface MultiFactorError extends AuthError {
332
- readonly operationType: OperationType ;
332
+ readonly operationType: typeof OperationType [ keyof typeof OperationType ] ;
333
333
}
334
334
335
335
// @public
336
336
export interface MultiFactorInfo {
337
337
readonly displayName? : string | null ;
338
338
readonly enrollmentTime: string ;
339
- readonly factorId: FactorId ;
339
+ readonly factorId: typeof FactorId [ keyof typeof FactorId ] ;
340
340
readonly uid: string ;
341
341
}
342
342
@@ -405,11 +405,11 @@ export function onAuthStateChanged(auth: Auth, nextOrObserver: NextOrObserver<Us
405
405
export function onIdTokenChanged(auth : Auth , nextOrObserver : NextOrObserver <User >, error ? : ErrorFn , completed ? : CompleteFn ): Unsubscribe ;
406
406
407
407
// @public
408
- export const enum OperationType {
409
- LINK = " link" ,
410
- REAUTHENTICATE = " reauthenticate" ,
411
- SIGN_IN = " signIn"
412
- }
408
+ export const OperationType: {
409
+ readonly LINK: " link" ;
410
+ readonly REAUTHENTICATE: " reauthenticate" ;
411
+ readonly SIGN_IN: " signIn" ;
412
+ };
413
413
414
414
// @public
415
415
export function parseActionCodeURL(link : string ): ActionCodeURL | null ;
@@ -502,20 +502,14 @@ export interface PopupRedirectResolver {
502
502
export const prodErrorMap: AuthErrorMap ;
503
503
504
504
// @public
505
- export const enum ProviderId {
506
- // @internal (undocumented)
507
- ANONYMOUS = " anonymous" ,
508
- // @internal (undocumented)
509
- CUSTOM = " custom" ,
510
- FACEBOOK = " facebook.com" ,
511
- // @internal (undocumented)
512
- FIREBASE = " firebase" ,
513
- GITHUB = " github.com" ,
514
- GOOGLE = " google.com" ,
515
- PASSWORD = " password" ,
516
- PHONE = " phone" ,
517
- TWITTER = " twitter.com"
518
- }
505
+ export const ProviderId: {
506
+ readonly FACEBOOK: " facebook.com" ;
507
+ readonly GITHUB: " github.com" ;
508
+ readonly GOOGLE: " google.com" ;
509
+ readonly PASSWORD: " password" ;
510
+ readonly PHONE: " phone" ;
511
+ readonly TWITTER: " twitter.com" ;
512
+ };
519
513
520
514
// @public
521
515
export interface ReactNativeAsyncStorage {
@@ -583,17 +577,15 @@ export function setPersistence(auth: Auth, persistence: Persistence): Promise<vo
583
577
export function signInAnonymously(auth : Auth ): Promise <UserCredential >;
584
578
585
579
// @public
586
- export const enum SignInMethod {
587
- // @internal (undocumented)
588
- ANONYMOUS = " anonymous" ,
589
- EMAIL_LINK = " emailLink" ,
590
- EMAIL_PASSWORD = " password" ,
591
- FACEBOOK = " facebook.com" ,
592
- GITHUB = " github.com" ,
593
- GOOGLE = " google.com" ,
594
- PHONE = " phone" ,
595
- TWITTER = " twitter.com"
596
- }
580
+ export const SignInMethod: {
581
+ readonly EMAIL_LINK: " emailLink" ;
582
+ readonly EMAIL_PASSWORD: " password" ;
583
+ readonly FACEBOOK: " facebook.com" ;
584
+ readonly GITHUB: " github.com" ;
585
+ readonly GOOGLE: " google.com" ;
586
+ readonly PHONE: " phone" ;
587
+ readonly TWITTER: " twitter.com" ;
588
+ };
597
589
598
590
// @public
599
591
export function signInWithCredential(auth : Auth , credential : AuthCredential ): Promise <UserCredential >;
@@ -630,7 +622,7 @@ export class TwitterAuthProvider extends BaseOAuthProvider {
630
622
}
631
623
632
624
// @public
633
- export function unlink(user : User , providerId : ProviderId ): Promise <User >;
625
+ export function unlink(user : User , providerId : string ): Promise <User >;
634
626
635
627
export { Unsubscribe }
636
628
@@ -677,7 +669,7 @@ export interface User extends UserInfo {
677
669
678
670
// @public
679
671
export interface UserCredential {
680
- operationType: OperationType ;
672
+ operationType: typeof OperationType [ keyof typeof OperationType ] ;
681
673
providerId: string | null ;
682
674
user: User ;
683
675
}
0 commit comments