Skip to content

Commit

Permalink
Updates to await for array of async requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
GSingh01 committed Jun 5, 2020
1 parent 4782df5 commit 866e8a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ADService.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,16 @@ 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),
this.secureStore.setItemAsync(this.IdTokenKey, res.id_token),
this.secureStore.setItemAsync(
this.ExpiresOnKey,
res.expires_on.toString()
)
);
),
]);
};

_getStaticURI = (policy, endPoint) => {
Expand Down

0 comments on commit 866e8a2

Please sign in to comment.