@@ -578,7 +578,9 @@ - (void)invalidate {
578
578
@" has expired or is not currently supported." ,
579
579
}];
580
580
}
581
- DLog (@" using app SignInWithCredential: %@ " , firebaseApp.name )[[FIRAuth authWithApp: firebaseApp]
581
+ DLog (@" using app SignInWithCredential: %@ " , firebaseApp.name );
582
+
583
+ [[FIRAuth authWithApp: firebaseApp]
582
584
signInWithCredential: credential
583
585
completion: ^(FIRAuthDataResult *authResult, NSError *error) {
584
586
if (error) {
@@ -820,8 +822,9 @@ - (void)invalidate {
820
822
: (NSString *)phoneNumber
821
823
: (RCTPromiseResolveBlock)resolve
822
824
: (RCTPromiseRejectBlock)reject) {
823
- DLog (@" SignInWthPhoneNumber instance: %@ " ,
824
- firebaseApp.name )[[FIRPhoneAuthProvider providerWithAuth: [FIRAuth authWithApp: firebaseApp]]
825
+ DLog (@" SignInWthPhoneNumber instance: %@ " , firebaseApp.name );
826
+
827
+ [[FIRPhoneAuthProvider providerWithAuth: [FIRAuth authWithApp: firebaseApp]]
825
828
verifyPhoneNumber: phoneNumber
826
829
UIDelegate: nil
827
830
completion: ^(NSString *_Nullable verificationID, NSError *_Nullable error) {
@@ -862,8 +865,9 @@ - (void)invalidate {
862
865
}];
863
866
return ;
864
867
}
865
- DLog (@" using instance verifyPhoneNumberWithMultiFactorInfo: %@ " ,
866
- firebaseApp.name )[[FIRPhoneAuthProvider providerWithAuth: [FIRAuth authWithApp: firebaseApp]]
868
+ DLog (@" using instance verifyPhoneNumberWithMultiFactorInfo: %@ " , firebaseApp.name );
869
+
870
+ [[FIRPhoneAuthProvider providerWithAuth: [FIRAuth authWithApp: firebaseApp]]
867
871
verifyPhoneNumberWithMultiFactorInfo: hint
868
872
UIDelegate: nil
869
873
multiFactorSession: session
@@ -907,12 +911,15 @@ - (void)invalidate {
907
911
: (NSString *)verificationCode
908
912
: (RCTPromiseResolveBlock)resolve
909
913
: (RCTPromiseRejectBlock)reject) {
910
- DLog (@" using instance resolve MultiFactorSignIn: %@ " , firebaseApp.name )
911
- FIRPhoneAuthCredential *credential =
912
- [[FIRPhoneAuthProvider providerWithAuth: [FIRAuth authWithApp: firebaseApp]]
913
- credentialWithVerificationID: verificationId
914
- verificationCode: verificationCode];
915
- DLog (@" credential: %@ " , credential) FIRMultiFactorAssertion *assertion =
914
+ DLog (@" using instance resolve MultiFactorSignIn: %@ " , firebaseApp.name );
915
+
916
+ FIRPhoneAuthCredential *credential =
917
+ [[FIRPhoneAuthProvider providerWithAuth: [FIRAuth authWithApp: firebaseApp]]
918
+ credentialWithVerificationID: verificationId
919
+ verificationCode: verificationCode];
920
+ DLog (@" credential: %@ " , credential);
921
+
922
+ FIRMultiFactorAssertion *assertion =
916
923
[FIRPhoneMultiFactorGenerator assertionWithCredential: credential];
917
924
918
925
[cachedResolver[sessionKey] resolveSignInWithAssertion: assertion
@@ -955,11 +962,12 @@ - (void)invalidate {
955
962
: (NSString *_Nullable)displayName
956
963
: (RCTPromiseResolveBlock)resolve
957
964
: (RCTPromiseRejectBlock)reject) {
958
- DLog (@" using instance finalizeMultifactorEnrollment: %@ " , firebaseApp.name )
959
- FIRPhoneAuthCredential *credential =
960
- [[FIRPhoneAuthProvider providerWithAuth: [FIRAuth authWithApp: firebaseApp]]
961
- credentialWithVerificationID: verificationId
962
- verificationCode: verificationCode];
965
+ DLog (@" using instance finalizeMultifactorEnrollment: %@ " , firebaseApp.name );
966
+
967
+ FIRPhoneAuthCredential *credential =
968
+ [[FIRPhoneAuthProvider providerWithAuth: [FIRAuth authWithApp: firebaseApp]]
969
+ credentialWithVerificationID: verificationId
970
+ verificationCode: verificationCode];
963
971
FIRMultiFactorAssertion *assertion =
964
972
[FIRPhoneMultiFactorGenerator assertionWithCredential: credential];
965
973
FIRUser *user = [FIRAuth authWithApp: firebaseApp].currentUser ;
@@ -980,8 +988,9 @@ - (void)invalidate {
980
988
: (FIRApp *)firebaseApp
981
989
: (NSString *)phoneNumber
982
990
: (NSString *)requestKey) {
983
- DLog (@" using instance verifyPhoneNumber: %@ " ,
984
- firebaseApp.name )[[FIRPhoneAuthProvider providerWithAuth: [FIRAuth authWithApp: firebaseApp]]
991
+ DLog (@" using instance verifyPhoneNumber: %@ " , firebaseApp.name );
992
+
993
+ [[FIRPhoneAuthProvider providerWithAuth: [FIRAuth authWithApp: firebaseApp]]
985
994
verifyPhoneNumber: phoneNumber
986
995
UIDelegate: nil
987
996
completion: ^(NSString *_Nullable verificationID, NSError *_Nullable error) {
0 commit comments