Skip to content

Commit 5fd85ba

Browse files
smilesa-maurice
authored andcommitted
Moved away from deprecated methods in iOS Auth User.
- linkAndRetrieveDataWithCredential was renamed to linkWithCredential - reauthenticateAndRetrieveDataWithCredential was renamed to reauthenticateWithCredential PiperOrigin-RevId: 264665506
1 parent 099b1bf commit 5fd85ba

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

auth/src/ios/user_ios.mm

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ explicit IOSWrappedUserInfo(id<FIRUserInfo> user_info) : user_info_(user_info) {
196196
const auto handle = auth_data_->future_impl.SafeAlloc<SignInResult>(
197197
kUserFn_LinkAndRetrieveDataWithCredential, SignInResult());
198198
[UserImpl(auth_data_)
199-
linkAndRetrieveDataWithCredential:CredentialFromImpl(credential.impl_)
200-
completion:^(FIRAuthDataResult *_Nullable auth_result,
201-
NSError *_Nullable error) {
202-
SignInResultCallback(auth_result, error, handle, auth_data_);
203-
}];
199+
linkWithCredential:CredentialFromImpl(credential.impl_)
200+
completion:^(FIRAuthDataResult *_Nullable auth_result,
201+
NSError *_Nullable error) {
202+
SignInResultCallback(auth_result, error, handle, auth_data_);
203+
}];
204204
return MakeFuture(&futures, handle);
205205
}
206206

@@ -283,11 +283,11 @@ explicit IOSWrappedUserInfo(id<FIRUserInfo> user_info) : user_info_(user_info) {
283283
kUserFn_ReauthenticateAndRetrieveData, SignInResult());
284284

285285
[UserImpl(auth_data_)
286-
reauthenticateAndRetrieveDataWithCredential:CredentialFromImpl(credential.impl_)
287-
completion:^(FIRAuthDataResult *_Nullable auth_result,
288-
NSError *_Nullable error) {
289-
SignInResultCallback(auth_result, error, handle, auth_data_);
290-
}];
286+
reauthenticateWithCredential:CredentialFromImpl(credential.impl_)
287+
completion:^(FIRAuthDataResult *_Nullable auth_result,
288+
NSError *_Nullable error) {
289+
SignInResultCallback(auth_result, error, handle, auth_data_);
290+
}];
291291
return MakeFuture(&futures, handle);
292292
}
293293

0 commit comments

Comments
 (0)