@@ -107,6 +107,74 @@ export function tryJSONStringify(data) {
107
107
const NO_REPLACEMENT = true ;
108
108
109
109
const mapOfDeprecationReplacements = {
110
+ auth : {
111
+ default : {
112
+ applyActionCode : 'applyActionCode()' ,
113
+ checkActionCode : 'checkActionCode()' ,
114
+ confirmPasswordReset : 'confirmPasswordReset()' ,
115
+ createUserWithEmailAndPassword : 'createUserWithEmailAndPassword()' ,
116
+ fetchSignInMethodsForEmail : 'fetchSignInMethodsForEmail()' ,
117
+ getMultiFactorResolver : 'getMultiFactorResolver()' ,
118
+ isSignInWithEmailLink : 'isSignInWithEmailLink()' ,
119
+ onAuthStateChanged : 'onAuthStateChanged()' ,
120
+ onIdTokenChanged : 'onIdTokenChanged()' ,
121
+ sendPasswordResetEmail : 'sendPasswordResetEmail()' ,
122
+ sendSignInLinkToEmail : 'sendSignInLinkToEmail()' ,
123
+ signInAnonymously : 'signInAnonymously()' ,
124
+ signInWithCredential : 'signInWithCredential()' ,
125
+ signInWithCustomToken : 'signInWithCustomToken()' ,
126
+ signInWithEmailAndPassword : 'signInWithEmailAndPassword()' ,
127
+ signInWithEmailLink : 'signInWithEmailLink()' ,
128
+ signInWithPhoneNumber : 'signInWithPhoneNumber()' ,
129
+ signInWithRedirect : 'signInWithRedirect()' ,
130
+ signInWithPopup : 'signInWithPopup()' ,
131
+ signOut : 'signOut()' ,
132
+ useUserAccessGroup : 'useUserAccessGroup()' ,
133
+ verifyPasswordResetCode : 'verifyPasswordResetCode()' ,
134
+ getCustomAuthDomain : 'getCustomAuthDomain()' ,
135
+ useEmulator : 'connectAuthEmulator()' ,
136
+ setLanguageCode : 'useDeviceLanguage()' ,
137
+ multiFactor : 'multiFactor()' ,
138
+ useDeviceLanguage : 'useDeviceLanguage()' ,
139
+ updateCurrentUser : 'updateCurrentUser()' ,
140
+ validatePassword : 'validatePassword()' ,
141
+ } ,
142
+ User : {
143
+ delete : 'deleteUser()' ,
144
+ getIdToken : 'getIdToken()' ,
145
+ getIdTokenResult : 'getIdTokenResult()' ,
146
+ linkWithCredential : 'linkWithCredential()' ,
147
+ linkWithPopup : 'linkWithPopup()' ,
148
+ linkWithRedirect : 'linkWithRedirect()' ,
149
+ reauthenticateWithCredential : 'reauthenticateWithCredential()' ,
150
+ reauthenticateWithPopup : 'reauthenticateWithPopup()' ,
151
+ reauthenticateWithRedirect : 'reauthenticateWithRedirect()' ,
152
+ reload : 'reload()' ,
153
+ sendEmailVerification : 'sendEmailVerification()' ,
154
+ toJSON : NO_REPLACEMENT ,
155
+ unlink : 'unlink()' ,
156
+ updateEmail : 'updateEmail()' ,
157
+ updatePassword : 'updatePassword()' ,
158
+ updatePhoneNumber : 'updatePhoneNumber()' ,
159
+ updateProfile : 'updateProfile()' ,
160
+ verifyBeforeUpdateEmail : 'verifyBeforeUpdateEmail()' ,
161
+ } ,
162
+ statics : {
163
+ AppleAuthProvider : 'AppleAuthProvider' ,
164
+ EmailAuthProvider : 'EmailAuthProvider' ,
165
+ PhoneAuthProvider : 'PhoneAuthProvider' ,
166
+ GoogleAuthProvider : 'GoogleAuthProvider' ,
167
+ GithubAuthProvider : 'GithubAuthProvider' ,
168
+ TwitterAuthProvider : 'TwitterAuthProvider' ,
169
+ FacebookAuthProvider : 'FacebookAuthProvider' ,
170
+ PhoneMultiFactorGenerator : 'PhoneMultiFactorGenerator' ,
171
+ OAuthProvider : 'OAuthProvider' ,
172
+ OIDCAuthProvider : 'OIDCAuthProvider' ,
173
+ PhoneAuthState : 'PhoneAuthState' ,
174
+ getMultiFactorResolver : 'getMultiFactorResolver()' ,
175
+ multiFactor : 'multiFactor()' ,
176
+ } ,
177
+ } ,
110
178
appCheck : {
111
179
default : {
112
180
activate : 'initializeAppCheck()' ,
@@ -432,6 +500,24 @@ export function createDeprecationProxy(instance) {
432
500
deprecationConsoleWarning ( 'storage' , prop , 'statics' , false ) ;
433
501
}
434
502
503
+ if (
504
+ prop === 'PhoneAuthState' ||
505
+ prop === 'AppleAuthProvider' ||
506
+ prop === 'PhoneAuthProvider' ||
507
+ prop === 'GoogleAuthProvider' ||
508
+ prop === 'GithubAuthProvider' ||
509
+ prop === 'TwitterAuthProvider' ||
510
+ prop === 'FacebookAuthProvider' ||
511
+ prop === 'OAuthProvider' ||
512
+ prop === 'OIDCAuthProvider' ||
513
+ prop === 'PhoneMultiFactorGenerator' ||
514
+ prop === 'EmailAuthProvider' ||
515
+ prop === 'multiFactor' ||
516
+ prop === 'getMultiFactorResolver'
517
+ ) {
518
+ deprecationConsoleWarning ( 'auth' , prop , 'statics' , false ) ;
519
+ }
520
+
435
521
if ( prop !== 'setLogLevel' ) {
436
522
// we want to capture setLogLevel function call which we do below
437
523
return Reflect . get ( target , prop , receiver ) ;
0 commit comments