Skip to content

Commit 9d054ec

Browse files
Refetch token if attempt was invalidated (#5769)
1 parent e4f05d3 commit 9d054ec

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Firestore/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Unreleased
2+
- [fixed] Fixed an issue that may have prevented the client from connecting
3+
to the backend immediately after a user signed in.
24

35
# v1.15.0
46
- [changed] Internal improvements for future C++ and Unity support. Includes a

Firestore/core/src/auth/firebase_credentials_provider_apple.mm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#include "Firestore/core/src/util/error_apple.h"
2626
#include "Firestore/core/src/util/hard_assert.h"
27+
#include "Firestore/core/src/util/log.h"
2728
#include "Firestore/core/src/util/string_apple.h"
2829

2930
namespace firebase {
@@ -97,8 +98,8 @@
9798
// Cancel the request since the user changed while the request was
9899
// outstanding so the response is likely for a previous user (which
99100
// user, we can't be sure).
100-
completion(util::Status(Error::kErrorAborted,
101-
"GetToken aborted due to token change."));
101+
LOG_DEBUG("GetToken aborted due to token change.");
102+
return GetToken(completion);
102103
} else {
103104
if (error == nil) {
104105
if (token != nil) {

0 commit comments

Comments
 (0)