@@ -112,7 +112,7 @@ - (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil
112112 if (self) {
113113 self.title = FUIPhoneAuthLocalizedString (kPAStr_EnterPhoneTitle );
114114 _countryCodes = countryCodes ?: [[FUICountryCodes alloc ] init ];
115- FUIPhoneAuth *provider = [authUI providerWithID: FIRPhoneAuthProviderID ];
115+ FUIPhoneAuth *provider = [authUI providerWithID: @" phone " ];
116116 NSString *defaultCountryCode = provider.defaultCountryCode ;
117117 _countryCodes.defaultCountryCodeInfo =
118118 [_countryCodes countryCodeInfoForCode: defaultCountryCode];
@@ -221,7 +221,7 @@ - (void)onNext:(NSString *)phoneNumber {
221221 actionHandler: nil ];
222222 [self presentViewController: alertController animated: YES completion: nil ];
223223
224- FUIPhoneAuth *delegate = [self .authUI providerWithID: FIRPhoneAuthProviderID ];
224+ FUIPhoneAuth *delegate = [self .authUI providerWithID: @" phone " ];
225225 [delegate callbackWithCredential: nil error: error result: nil ];
226226 return ;
227227 }
@@ -360,7 +360,7 @@ - (void)setCountryCodeValue {
360360
361361- (void )cancelAuthorization {
362362 NSError *error = [FUIAuthErrorUtils userCancelledSignInError ];
363- FUIPhoneAuth *delegate = [self .authUI providerWithID: FIRPhoneAuthProviderID ];
363+ FUIPhoneAuth *delegate = [self .authUI providerWithID: @" phone " ];
364364 [delegate callbackWithCredential: nil error: error result: ^(FIRUser *_Nullable user,
365365 NSError *_Nullable error) {
366366 if (!error || error.code == FUIAuthErrorCodeUserCancelledSignIn) {
0 commit comments