Page MenuHomePhabricator

D9871.diff
No OneTemporary

D9871.diff

diff --git a/keyserver/src/push/providers.js b/keyserver/src/push/providers.js
--- a/keyserver/src/push/providers.js
+++ b/keyserver/src/push/providers.js
@@ -154,11 +154,12 @@
let wnsAccessToken: ?WNSAccessToken = null;
async function getWNSToken(): Promise<?string> {
const expiryWindowInMs = 10_000;
+ const localWNSAccessToken = wnsAccessToken;
if (
- wnsAccessToken &&
- wnsAccessToken.expires >= Date.now() - expiryWindowInMs
+ localWNSAccessToken &&
+ localWNSAccessToken.expires >= Date.now() - expiryWindowInMs
) {
- return wnsAccessToken.token;
+ return localWNSAccessToken.token;
}
const config = await getCommConfig<WNSConfig>({

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 27, 7:54 AM (21 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2589471
Default Alt Text
D9871.diff (680 B)

Event Timeline