Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion accelerator-home-ui/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"log": true,
"enableAppSuspended": true,
"showVersion": false,
"version": "6.0.12"
"version": "6.0.13"
}
}
8 changes: 8 additions & 0 deletions accelerator-home-ui/src/api/AppCatalog.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,10 @@ export async function login(user, pass) {

try {
const loginResponse = await handler.login(user, pass);
if (!loginResponse || typeof loginResponse.expiresIn !== 'number') {
console.warn('Login failed: invalid response from server', loginResponse);
return false;
}
Comment on lines +423 to +426
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is not needed, the wrong behavior we observe is caused by the server side.

appCatalogHandler = handler;
handler.scheduleRefresh(loginResponse, () => handleAuthExpired(handler));
Comment thread
suryag23 marked this conversation as resolved.
eventTarget.dispatchEvent(new RefreshNeeded());
Expand Down Expand Up @@ -447,3 +451,7 @@ export async function makeDownloadURL(url) {
const handler = appCatalogHandler;
return callAndHandleAuthExpired(handler, () => handler.makeDownloadURL(url));
}

export async function getCatalogServerURL() {
return getServerURL();
}
Loading
Loading