@@ -144,6 +144,8 @@ declare class FIRAuth extends NSObject {
144144
145145 signInWithEmailPasswordCompletion ( email : string , password : string , completion : ( p1 : FIRAuthDataResult , p2 : NSError ) => void ) : void ;
146146
147+ signInWithProviderUIDelegateCompletion ( provider : FIRFederatedAuthProvider , UIDelegate : FIRAuthUIDelegate , completion : ( p1 : FIRAuthDataResult , p2 : NSError ) => void ) : void ;
148+
147149 signOut ( ) : boolean ;
148150
149151 updateCurrentUserCompletion ( user : FIRUser , completion : ( p1 : NSError ) => void ) : void ;
@@ -290,12 +292,18 @@ declare const enum FIRAuthErrorCode {
290292
291293 WebInternalError = 17062 ,
292294
295+ WebSignInUserInteractionFailure = 17063 ,
296+
293297 LocalPlayerNotAuthenticated = 17066 ,
294298
295299 NullUser = 17067 ,
296300
301+ InvalidProviderID = 17071 ,
302+
297303 InvalidDynamicLinkDomain = 17074 ,
298304
305+ GameKitNotLinked = 17076 ,
306+
299307 KeychainError = 17995 ,
300308
301309 InternalError = 17999 ,
@@ -309,6 +317,10 @@ declare var FIRAuthErrorNameKey: string;
309317
310318declare var FIRAuthErrorUserInfoEmailKey : string ;
311319
320+ declare var FIRAuthErrorUserInfoNameKey : string ;
321+
322+ declare var FIRAuthErrorUserInfoUpdatedCredentialKey : string ;
323+
312324declare class FIRAuthErrors {
313325}
314326
@@ -387,6 +399,15 @@ declare var FIRFacebookAuthProviderID: string;
387399
388400declare var FIRFacebookAuthSignInMethod : string ;
389401
402+ interface FIRFederatedAuthProvider extends NSObjectProtocol {
403+
404+ getCredentialWithUIDelegateCompletion ( UIDelegate : FIRAuthUIDelegate , completion : ( p1 : FIRAuthCredential , p2 : NSError ) => void ) : void ;
405+ }
406+ declare var FIRFederatedAuthProvider : {
407+
408+ prototype : FIRFederatedAuthProvider ;
409+ } ;
410+
390411declare class FIRGameCenterAuthProvider extends NSObject {
391412
392413 static alloc ( ) : FIRGameCenterAuthProvider ; // inherited from NSObject
@@ -426,22 +447,101 @@ declare var FIRGoogleAuthProviderID: string;
426447
427448declare var FIRGoogleAuthSignInMethod : string ;
428449
429- declare class FIROAuthProvider extends NSObject {
450+ declare var FIRMicrosoftAuthProviderID : string ;
451+
452+ declare class FIROAuthCredential extends FIRAuthCredential implements NSSecureCoding {
453+
454+ static alloc ( ) : FIROAuthCredential ; // inherited from NSObject
455+
456+ static new ( ) : FIROAuthCredential ; // inherited from NSObject
457+
458+ readonly IDToken : string ;
459+
460+ readonly accessToken : string ;
461+
462+ readonly pendingToken : string ;
463+
464+ static readonly supportsSecureCoding : boolean ; // inherited from NSSecureCoding
465+
466+ constructor ( o : { coder : NSCoder ; } ) ; // inherited from NSCoding
467+
468+ encodeWithCoder ( aCoder : NSCoder ) : void ;
469+
470+ initWithCoder ( aDecoder : NSCoder ) : this;
471+ }
472+
473+ declare class FIROAuthProvider extends NSObject implements FIRFederatedAuthProvider {
430474
431475 static alloc ( ) : FIROAuthProvider ; // inherited from NSObject
432476
433- static credentialWithProviderIDAccessToken ( providerID : string , accessToken : string ) : FIRAuthCredential ;
477+ static credentialWithProviderIDAccessToken ( providerID : string , accessToken : string ) : FIROAuthCredential ;
434478
435- static credentialWithProviderIDIDTokenAccessToken ( providerID : string , IDToken : string , accessToken : string ) : FIRAuthCredential ;
479+ static credentialWithProviderIDIDTokenAccessToken ( providerID : string , IDToken : string , accessToken : string ) : FIROAuthCredential ;
480+
481+ static credentialWithProviderIDIDTokenAccessTokenPendingToken ( providerID : string , IDToken : string , accessToken : string , pendingToken : string ) : FIROAuthCredential ;
436482
437483 static new ( ) : FIROAuthProvider ; // inherited from NSObject
484+
485+ static providerWithProviderID ( providerID : string ) : FIROAuthProvider ;
486+
487+ static providerWithProviderIDAuth ( providerID : string , auth : FIRAuth ) : FIROAuthProvider ;
488+
489+ customParameters : NSDictionary < string , string > ;
490+
491+ readonly providerID : string ;
492+
493+ scopes : NSArray < string > ;
494+
495+ readonly debugDescription : string ; // inherited from NSObjectProtocol
496+
497+ readonly description : string ; // inherited from NSObjectProtocol
498+
499+ readonly hash : number ; // inherited from NSObjectProtocol
500+
501+ readonly isProxy : boolean ; // inherited from NSObjectProtocol
502+
503+ readonly superclass : typeof NSObject ; // inherited from NSObjectProtocol
504+
505+ readonly // inherited from NSObjectProtocol
506+
507+ class ( ) : typeof NSObject ;
508+
509+ conformsToProtocol ( aProtocol : any /* Protocol */ ) : boolean ;
510+
511+ getCredentialWithUIDelegateCompletion ( UIDelegate : FIRAuthUIDelegate , completion : ( p1 : FIRAuthCredential , p2 : NSError ) => void ) : void ;
512+
513+ isEqual ( object : any ) : boolean ;
514+
515+ isKindOfClass ( aClass : typeof NSObject ) : boolean ;
516+
517+ isMemberOfClass ( aClass : typeof NSObject ) : boolean ;
518+
519+ performSelector ( aSelector : string ) : any ;
520+
521+ performSelectorWithObject ( aSelector : string , object : any ) : any ;
522+
523+ performSelectorWithObjectWithObject ( aSelector : string , object1 : any , object2 : any ) : any ;
524+
525+ respondsToSelector ( aSelector : string ) : boolean ;
526+
527+ retainCount ( ) : number ;
528+
529+ self ( ) : this;
438530}
439531
440- declare class FIRPhoneAuthCredential extends FIRAuthCredential {
532+ declare class FIRPhoneAuthCredential extends FIRAuthCredential implements NSSecureCoding {
441533
442534 static alloc ( ) : FIRPhoneAuthCredential ; // inherited from NSObject
443535
444536 static new ( ) : FIRPhoneAuthCredential ; // inherited from NSObject
537+
538+ static readonly supportsSecureCoding : boolean ; // inherited from NSSecureCoding
539+
540+ constructor ( o : { coder : NSCoder ; } ) ; // inherited from NSCoding
541+
542+ encodeWithCoder ( aCoder : NSCoder ) : void ;
543+
544+ initWithCoder ( aDecoder : NSCoder ) : this;
445545}
446546
447547declare class FIRPhoneAuthProvider extends NSObject {
@@ -616,6 +716,8 @@ declare class FIRUserProfileChangeRequest extends NSObject {
616716 commitChangesWithCompletion ( completion : ( p1 : NSError ) => void ) : void ;
617717}
618718
719+ declare var FIRYahooAuthProviderID : string ;
720+
619721declare var FirebaseAuthVersionNum : number ;
620722
621723declare var FirebaseAuthVersionNumber : number ;
0 commit comments