Merge pull request #350 from EdouardVanbelle/fix/blank-section-on-token-expired

fix(ui): handle any session expired and trigger transparently a refresh token
This commit is contained in:
Dionisio Pozo
2026-05-08 01:21:42 +02:00
committed by GitHub
4 changed files with 115 additions and 8 deletions
+2 -2
View File
@@ -182,8 +182,8 @@ async function loadFiles(options = { insertHistory: true }) {
// not required anymore
clearTimeout(loadingFiles);
if (response.status === 401 || response.status === 403) {
console.warn('Auth error when loading files, showing empty list');
if (response.status === 403) {
console.warn('Forbidden when loading files');
// FIXME: i18n
ui.showError(`<p>Could not load files</p>`);
return;
+4
View File
@@ -3,6 +3,10 @@
* This file contains the core functionality, initialization and state management
*/
import { installFetchInterceptor } from '../core/fetchWrapper.js';
installFetchInterceptor();
import { formatFileSize, formatQuotaSize } from '../core/formatters.js';
import { i18n } from '../core/i18n.js';
import { oxiIconsInit } from '../core/icons.js';