@@ -20,18 +20,18 @@ export interface ActionCodeInfo {
2020 multiFactorInfo? : MultiFactorInfo | null ;
2121 previousEmail? : string | null ;
2222 };
23- operation: ActionCodeOperation ;
23+ operation: typeof ActionCodeOperation [ keyof typeof ActionCodeOperation ] ;
2424}
2525
2626// @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+ };
3535
3636// @public
3737export interface ActionCodeSettings {
@@ -56,7 +56,7 @@ export class ActionCodeURL {
5656 readonly code: string ;
5757 readonly continueUrl: string | null ;
5858 readonly languageCode: string | null ;
59- readonly operation: ActionCodeOperation ;
59+ readonly operation: string ;
6060 static parseLink(link : string ): ActionCodeURL | null ;
6161 readonly tenantId: string | null ;
6262}
@@ -239,9 +239,9 @@ export class FacebookAuthProvider extends BaseOAuthProvider {
239239}
240240
241241// @public
242- export const enum FactorId {
243- PHONE = " phone"
244- }
242+ export const FactorId: {
243+ readonly PHONE: " phone" ;
244+ };
245245
246246// @public
247247export function fetchSignInMethodsForEmail(auth : Auth , email : string ): Promise <string []>;
@@ -324,19 +324,19 @@ export function multiFactor(user: User): MultiFactorUser;
324324
325325// @public
326326export interface MultiFactorAssertion {
327- readonly factorId: FactorId ;
327+ readonly factorId: typeof FactorId [ keyof typeof FactorId ] ;
328328}
329329
330330// @public
331331export interface MultiFactorError extends AuthError {
332- readonly operationType: OperationType ;
332+ readonly operationType: typeof OperationType [ keyof typeof OperationType ] ;
333333}
334334
335335// @public
336336export interface MultiFactorInfo {
337337 readonly displayName? : string | null ;
338338 readonly enrollmentTime: string ;
339- readonly factorId: FactorId ;
339+ readonly factorId: typeof FactorId [ keyof typeof FactorId ] ;
340340 readonly uid: string ;
341341}
342342
@@ -405,11 +405,11 @@ export function onAuthStateChanged(auth: Auth, nextOrObserver: NextOrObserver<Us
405405export function onIdTokenChanged(auth : Auth , nextOrObserver : NextOrObserver <User >, error ? : ErrorFn , completed ? : CompleteFn ): Unsubscribe ;
406406
407407// @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+ };
413413
414414// @public
415415export function parseActionCodeURL(link : string ): ActionCodeURL | null ;
@@ -502,20 +502,14 @@ export interface PopupRedirectResolver {
502502export const prodErrorMap: AuthErrorMap ;
503503
504504// @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+ };
519513
520514// @public
521515export interface ReactNativeAsyncStorage {
@@ -583,17 +577,15 @@ export function setPersistence(auth: Auth, persistence: Persistence): Promise<vo
583577export function signInAnonymously(auth : Auth ): Promise <UserCredential >;
584578
585579// @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+ };
597589
598590// @public
599591export function signInWithCredential(auth : Auth , credential : AuthCredential ): Promise <UserCredential >;
@@ -630,7 +622,7 @@ export class TwitterAuthProvider extends BaseOAuthProvider {
630622}
631623
632624// @public
633- export function unlink(user : User , providerId : ProviderId ): Promise <User >;
625+ export function unlink(user : User , providerId : string ): Promise <User >;
634626
635627export { Unsubscribe }
636628
@@ -677,7 +669,7 @@ export interface User extends UserInfo {
677669
678670// @public
679671export interface UserCredential {
680- operationType: OperationType ;
672+ operationType: typeof OperationType [ keyof typeof OperationType ] ;
681673 providerId: string | null ;
682674 user: User ;
683675}
0 commit comments