Skip to content

Commit b1a2ce1

Browse files
authored
updated docs with platform-specific behaviors (#502)
The behavior of ReauthenticateAndRetrieveData errors differ per platform. The preexisting comments documented the iOS behavior only, which was confusing for users of other platforms. This PR clarifies that errors on Android and Desktop platforms may cause the user to be signed out.
1 parent f45a80e commit b1a2ce1

File tree

1 file changed

+3
-4
lines changed
  • auth/src/include/firebase/auth

1 file changed

+3
-4
lines changed

auth/src/include/firebase/auth/user.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,9 @@ class User : public UserInfoInterface {
276276
/// AdditionalUserInfo inside the returned SignInResult.
277277
///
278278
/// Returns an error if the existing credential is not for this user
279-
/// or if sign-in with that credential failed. The user should remain
280-
/// signed in even if this method failed. If the developer had held
281-
/// a reference to that user, the reference will continue to be valid
282-
/// after this operation.
279+
/// or if sign-in with that credential failed.
280+
/// @note: The current user may be signed out if this operation fails on
281+
/// Android and desktop platforms.
283282
Future<SignInResult> ReauthenticateAndRetrieveData(
284283
const Credential& credential);
285284

0 commit comments

Comments
 (0)