From 866e8a2044588fa99d980557a9f2d31e80890471 Mon Sep 17 00:00:00 2001 From: ghanjra Date: Fri, 5 Jun 2020 14:32:25 -0700 Subject: [PATCH] Updates to await for array of async requests. --- src/ADService.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ADService.js b/src/ADService.js index c640d64..23967be 100644 --- a/src/ADService.js +++ b/src/ADService.js @@ -141,7 +141,7 @@ class ADService { expiresOn: res.expires_on, }; - await Promise.all( + await Promise.all([ this.secureStore.setItemAsync(this.TokenTypeKey, res.token_type), this.secureStore.setItemAsync(this.AccessTokenKey, res.access_token), this.secureStore.setItemAsync(this.RefreshTokenKey, res.refresh_token), @@ -149,8 +149,8 @@ class ADService { this.secureStore.setItemAsync( this.ExpiresOnKey, res.expires_on.toString() - ) - ); + ), + ]); }; _getStaticURI = (policy, endPoint) => {