@xh/hoist 64.0.4 → 64.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "64.0.4",
3
+ "version": "64.0.5",
4
4
  "description": "Hoist add-on for building and deploying React Applications.",
5
5
  "repository": "github:xh/hoist-react",
6
6
  "homepage": "https://xh.io",
@@ -31,9 +31,10 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@auth0/auth0-spa-js": "~2.1.3",
34
- "@azure/msal-browser": "~3.14.0",
35
- "@blueprintjs/core": "^5.10.2",
36
- "@blueprintjs/datetime2": "^2.3.3",
34
+ "@azure/msal-browser": "~3.17.0",
35
+ "@blueprintjs/core": "^5.10.3",
36
+ "@blueprintjs/datetime": "^5.3.5",
37
+ "@blueprintjs/datetime2": "^2.3.5",
37
38
  "@fortawesome/fontawesome-pro": "^6.2.1",
38
39
  "@fortawesome/fontawesome-svg-core": "^6.2.1",
39
40
  "@fortawesome/pro-light-svg-icons": "^6.2.1",
@@ -92,7 +93,7 @@
92
93
  "@ag-grid-community/client-side-row-model": "31.x",
93
94
  "@ag-grid-community/core": "31.x",
94
95
  "@ag-grid-community/react": "31.x",
95
- "@xh/hoist-dev-utils": "^9.0.0-SNAPSHOT",
96
+ "@xh/hoist-dev-utils": "8.x",
96
97
  "csstype": "3.x",
97
98
  "eslint": "8.x",
98
99
  "eslint-config-prettier": "9.x",
@@ -153,8 +153,8 @@ export abstract class BaseOAuthClient<C extends BaseOAuthClientConfig<S>, S> ext
153
153
  * Request a full logout from the underlying OAuth provider.
154
154
  */
155
155
  async logoutAsync(): Promise<void> {
156
- this.setSelectedUsername(null);
157
156
  await this.doLogoutAsync();
157
+ this.setSelectedUsername(null);
158
158
  }
159
159
 
160
160
  /**
@@ -130,8 +130,9 @@ export class MsalClient extends BaseOAuthClient<MsalClientConfig, MsalTokenSpec>
130
130
  // to gain a new refreshToken (3rd party cookies required).
131
131
  const accounts = client.getAllAccounts();
132
132
  this.logDebug('Authenticated accounts available', accounts);
133
- this.account = accounts.length == 1 ? accounts[0] : null;
134
- if (this.account) {
133
+ const account = accounts.length == 1 ? accounts[0] : null;
134
+ if (account) {
135
+ this.noteUserAuthenticated(account);
135
136
  try {
136
137
  this.initialTokenLoad = true;
137
138
  this.logDebug('Attempting silent token load.');
@@ -230,11 +231,12 @@ export class MsalClient extends BaseOAuthClient<MsalClientConfig, MsalTokenSpec>
230
231
  }
231
232
 
232
233
  protected override async doLogoutAsync(): Promise<void> {
233
- const {postLogoutRedirectUrl, client, account, loginMethod} = this;
234
- await client.clearCache({account});
234
+ const {postLogoutRedirectUrl, client, account, loginMethod} = this,
235
+ opts = {account, postLogoutRedirectUri: postLogoutRedirectUrl};
236
+
235
237
  loginMethod == 'REDIRECT'
236
- ? await client.logoutRedirect({account, postLogoutRedirectUri: postLogoutRedirectUrl})
237
- : await client.logoutPopup({account});
238
+ ? await client.logoutRedirect(opts)
239
+ : await client.logoutPopup(opts);
238
240
  }
239
241
 
240
242
  //------------------------