From 62f8bda0fc20444fbf2ecfe149858726ff525b7d Mon Sep 17 00:00:00 2001 From: Andrew Heard Date: Wed, 8 Nov 2023 12:42:28 -0500 Subject: [PATCH] Add TODO to fix `token(forcingRefresh: true)` issue (#42) --- AppCheckCore/Sources/Core/GACAppCheck.m | 1 + 1 file changed, 1 insertion(+) diff --git a/AppCheckCore/Sources/Core/GACAppCheck.m b/AppCheckCore/Sources/Core/GACAppCheck.m index a234730..6e1781d 100644 --- a/AppCheckCore/Sources/Core/GACAppCheck.m +++ b/AppCheckCore/Sources/Core/GACAppCheck.m @@ -135,6 +135,7 @@ - (void)limitedUseTokenWithCompletion:(GACAppCheckTokenHandler)handler { - (FBLPromise *)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 =