nextcloud/core/src
Ferdinand Thiessen f5f3ae2c19 fix: Redirect user to login if session is terminated
If a session timed out or was closed in another tab,
then currently the user gets random error messages.
This intercepts 401 responses (should only happen if logged out, or the
users does something wrong).

If we get a 401, we make sure its because of the session,
by checking if the user can access the files app.
If that is also the case we forward the user to the login page
and set the redirect URL to the last used URL.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-01-09 09:48:44 +01:00
..
components fix(core): Do not use v-html for translation output 2024-11-19 09:49:07 +00:00
files fix(files_sharing): adjust IAttributes API and files_versions 2024-07-12 20:14:30 +02:00
jquery fix(share): render conflict modal in public shares 2024-12-19 09:54:21 +01:00
mixins chore: Add SPDX header 2024-05-13 17:41:36 +02:00
OC chore: Enable ESLint for apps and fix all errors 2024-07-09 17:13:30 +02:00
OCA chore: Add SPDX header 2024-05-13 17:41:36 +02:00
OCP chore: Add SPDX header 2024-05-13 17:41:36 +02:00
profile chore: Add SPDX header 2024-05-13 17:41:36 +02:00
services chore: Add SPDX header 2024-05-13 17:41:36 +02:00
store chore: Add SPDX header 2024-05-13 17:41:36 +02:00
systemtags chore: Enable ESLint for apps and fix all errors 2024-07-09 17:13:30 +02:00
tests chore: Enable ESLint for apps and fix all errors 2024-07-09 17:13:30 +02:00
types chore: Make active apps initial state consistent with OCS API 2024-07-10 01:35:24 +02:00
Util chore: Enable ESLint for apps and fix all errors 2024-07-09 17:13:30 +02:00
utils fix: Redirect user to login if session is terminated 2025-01-09 09:48:44 +01:00
views fix(unified-search): Close on second ctrl+f 2024-10-28 14:43:25 +01:00
ajax-cron.ts refactor(core): Make AJAX cron script work without jQuery 2024-06-28 17:28:10 +02:00
eventbus.d.ts feat: Add in-app search 2024-06-27 12:13:14 +02:00
globals.js chore: Add SPDX header 2024-05-13 17:41:36 +02:00
icons.js chore: Add text file icon class 2024-10-10 11:29:53 -07:00
init.js chore: Add SPDX header 2024-05-13 17:41:36 +02:00
install.js chore: Add SPDX header 2024-05-13 17:41:36 +02:00
legacy-unified-search.js chore(deps): Update @nextcloud/auth to v2.4.0 and use getCSPNonce where possible 2024-08-13 17:54:47 +02:00
logger.js feat: Add in-app search 2024-06-27 12:13:14 +02:00
login.js chore: Add SPDX header 2024-05-13 17:41:36 +02:00
main.js chore(deps): Update @nextcloud/auth to v2.4.0 and use getCSPNonce where possible 2024-08-13 17:54:47 +02:00
maintenance.js chore: Add SPDX header 2024-05-13 17:41:36 +02:00
profile.ts chore(deps): Update @nextcloud/auth to v2.4.0 and use getCSPNonce where possible 2024-08-13 17:54:47 +02:00
public.ts fix: Fix inaccessible content on public pages due to overlapping footer 2024-09-06 15:43:13 -07:00
recommendedapps.js chore(deps): Update @nextcloud/auth to v2.4.0 and use getCSPNonce where possible 2024-08-13 17:54:47 +02:00
session-heartbeat.js chore: Enable ESLint for apps and fix all errors 2024-07-09 17:13:30 +02:00
unified-search.ts chore(deps): Update @nextcloud/auth to v2.4.0 and use getCSPNonce where possible 2024-08-13 17:54:47 +02:00
unsupported-browser-redirect.js chore(deps): Update @nextcloud/auth to v2.4.0 and use getCSPNonce where possible 2024-08-13 17:54:47 +02:00
unsupported-browser.js chore: Add SPDX header 2024-05-13 17:41:36 +02:00