Skip to content

Commit

Permalink
Add TODO to fix token(forcingRefresh: true) issue (#42) (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard authored Nov 8, 2023
1 parent 5746b2d commit 3a923e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions AppCheckCore/Sources/Core/GACAppCheck.m
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ - (void)limitedUseTokenWithCompletion:(GACAppCheckTokenHandler)handler {

- (FBLPromise<GACAppCheckToken *> *)retrieveOrRefreshTokenForcingRefresh:(BOOL)forcingRefresh {
return [FBLPromise do:^id _Nullable {
// TODO(#42): Don't re-use ongoing promise if forcingRefresh is YES.
if (self.ongoingRetrieveOrRefreshTokenPromise == nil) {
// Kick off a new operation only when there is not an ongoing one.
self.ongoingRetrieveOrRefreshTokenPromise =
Expand Down

0 comments on commit 3a923e7

Please sign in to comment.