@@ -112,7 +112,7 @@ - (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil
112
112
if (self) {
113
113
self.title = FUIPhoneAuthLocalizedString (kPAStr_EnterPhoneTitle );
114
114
_countryCodes = countryCodes ?: [[FUICountryCodes alloc ] init ];
115
- FUIPhoneAuth *provider = [authUI providerWithID: FIRPhoneAuthProviderID ];
115
+ FUIPhoneAuth *provider = [authUI providerWithID: @" phone " ];
116
116
NSString *defaultCountryCode = provider.defaultCountryCode ;
117
117
_countryCodes.defaultCountryCodeInfo =
118
118
[_countryCodes countryCodeInfoForCode: defaultCountryCode];
@@ -221,7 +221,7 @@ - (void)onNext:(NSString *)phoneNumber {
221
221
actionHandler: nil ];
222
222
[self presentViewController: alertController animated: YES completion: nil ];
223
223
224
- FUIPhoneAuth *delegate = [self .authUI providerWithID: FIRPhoneAuthProviderID ];
224
+ FUIPhoneAuth *delegate = [self .authUI providerWithID: @" phone " ];
225
225
[delegate callbackWithCredential: nil error: error result: nil ];
226
226
return ;
227
227
}
@@ -360,7 +360,7 @@ - (void)setCountryCodeValue {
360
360
361
361
- (void )cancelAuthorization {
362
362
NSError *error = [FUIAuthErrorUtils userCancelledSignInError ];
363
- FUIPhoneAuth *delegate = [self .authUI providerWithID: FIRPhoneAuthProviderID ];
363
+ FUIPhoneAuth *delegate = [self .authUI providerWithID: @" phone " ];
364
364
[delegate callbackWithCredential: nil error: error result: ^(FIRUser *_Nullable user,
365
365
NSError *_Nullable error) {
366
366
if (!error || error.code == FUIAuthErrorCodeUserCancelledSignIn) {
0 commit comments