We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce7210a commit 23acebfCopy full SHA for 23acebf
shell-ui/jest.config.js
@@ -11,4 +11,7 @@ module.exports = {
11
"^@mcp-b/(.*)$": "<rootDir>/src/__mocks__/@mcp-b.js",
12
},
13
testEnvironment: "jsdom",
14
+ globals: {
15
+ __webpack_public_path__: "/",
16
+ },
17
};
shell-ui/src/auth/AuthProvider.tsx
@@ -229,10 +229,9 @@ export function useAuth(): {
229
original: auth.userData,
230
231
getToken: async () => {
232
- if (auth.userManager?.getUser) {
233
- return auth.userManager.getUser().then((user) => user?.access_token ?? null);
234
- }
235
- return auth.userData?.access_token ?? null;
+ return auth.userManager.getUser().then((user) => {
+ return user?.access_token;
+ });
236
237
238
} catch (e) {
0 commit comments