@@ -164,6 +164,8 @@ declare namespace firebase.auth {
164
164
) : Promise < any > ;
165
165
currentUser : firebase . User | null ;
166
166
fetchProvidersForEmail ( email : string ) : Promise < any > ;
167
+ fetchSignInMethodsForEmail ( email : string ) : Promise < any > ;
168
+ isSignInWithEmailLink ( emailLink : string ) : boolean ;
167
169
getRedirectResult ( ) : Promise < any > ;
168
170
languageCode : string | null ;
169
171
onAuthStateChanged (
@@ -180,6 +182,10 @@ declare namespace firebase.auth {
180
182
error ?: ( a : firebase . auth . Error ) => any ,
181
183
completed ?: firebase . Unsubscribe
182
184
) : firebase . Unsubscribe ;
185
+ sendSignInLinkToEmail (
186
+ email : string ,
187
+ actionCodeSettings : firebase . auth . ActionCodeSettings
188
+ ) : Promise < any > ;
183
189
sendPasswordResetEmail (
184
190
email : string ,
185
191
actionCodeSettings ?: firebase . auth . ActionCodeSettings | null
@@ -189,15 +195,19 @@ declare namespace firebase.auth {
189
195
credential : firebase . auth . AuthCredential
190
196
) : Promise < any > ;
191
197
signInAnonymously ( ) : Promise < any > ;
198
+ signInAnonymouslyAndRetrieveData ( ) : Promise < any > ;
192
199
signInWithCredential (
193
200
credential : firebase . auth . AuthCredential
194
201
) : Promise < any > ;
195
202
signInWithCustomToken ( token : string ) : Promise < any > ;
203
+ signInAndRetrieveDataWithCustomToken ( token : string ) : Promise < any > ;
196
204
signInWithEmailAndPassword ( email : string , password : string ) : Promise < any > ;
205
+ signInAndRetrieveDataWithEmailAndPassword ( email : string , password : string ) : Promise < any > ;
197
206
signInWithPhoneNumber (
198
207
phoneNumber : string ,
199
208
applicationVerifier : firebase . auth . ApplicationVerifier
200
209
) : Promise < any > ;
210
+ signInWithEmailLink ( email : string , emailLink ?: string ) : Promise < any > ;
201
211
signInWithPopup ( provider : firebase . auth . AuthProvider ) : Promise < any > ;
202
212
signInWithRedirect ( provider : firebase . auth . AuthProvider ) : Promise < any > ;
203
213
signOut ( ) : Promise < any > ;
@@ -207,6 +217,7 @@ declare namespace firebase.auth {
207
217
208
218
interface AuthCredential {
209
219
providerId : string ;
220
+ signInMethod : string ;
210
221
}
211
222
212
223
interface AuthProvider {
@@ -220,10 +231,16 @@ declare namespace firebase.auth {
220
231
221
232
class EmailAuthProvider extends EmailAuthProvider_Instance {
222
233
static PROVIDER_ID : string ;
234
+ static EMAIL_PASSWORD_SIGN_IN_METHOD : string ;
235
+ static EMAIL_LINK_SIGN_IN_METHOD : string ;
223
236
static credential (
224
237
email : string ,
225
238
password : string
226
239
) : firebase . auth . AuthCredential ;
240
+ static credentialWithLink (
241
+ email : string ,
242
+ emailLink : string
243
+ ) : firebase . auth . AuthCredential ;
227
244
}
228
245
class EmailAuthProvider_Instance implements firebase . auth . AuthProvider {
229
246
providerId : string ;
@@ -236,6 +253,7 @@ declare namespace firebase.auth {
236
253
237
254
class FacebookAuthProvider extends FacebookAuthProvider_Instance {
238
255
static PROVIDER_ID : string ;
256
+ static FACEBOOK_SIGN_IN_METHOD : string ;
239
257
static credential ( token : string ) : firebase . auth . AuthCredential ;
240
258
}
241
259
class FacebookAuthProvider_Instance implements firebase . auth . AuthProvider {
@@ -248,6 +266,7 @@ declare namespace firebase.auth {
248
266
249
267
class GithubAuthProvider extends GithubAuthProvider_Instance {
250
268
static PROVIDER_ID : string ;
269
+ static GITHUB_SIGN_IN_METHOD : string ;
251
270
static credential ( token : string ) : firebase . auth . AuthCredential ;
252
271
}
253
272
class GithubAuthProvider_Instance implements firebase . auth . AuthProvider {
@@ -260,6 +279,7 @@ declare namespace firebase.auth {
260
279
261
280
class GoogleAuthProvider extends GoogleAuthProvider_Instance {
262
281
static PROVIDER_ID : string ;
282
+ static GOOGLE_SIGN_IN_METHOD : string ;
263
283
static credential (
264
284
idToken ?: string | null ,
265
285
accessToken ?: string | null
@@ -275,6 +295,7 @@ declare namespace firebase.auth {
275
295
276
296
class PhoneAuthProvider extends PhoneAuthProvider_Instance {
277
297
static PROVIDER_ID : string ;
298
+ static PHONE_SIGN_IN_METHOD : string ;
278
299
static credential (
279
300
verificationId : string ,
280
301
verificationCode : string
@@ -305,6 +326,7 @@ declare namespace firebase.auth {
305
326
306
327
class TwitterAuthProvider extends TwitterAuthProvider_Instance {
307
328
static PROVIDER_ID : string ;
329
+ static TWITTER_SIGN_IN_METHOD : string ;
308
330
static credential (
309
331
token : string ,
310
332
secret : string
0 commit comments