nextcloud/core/src/utils
Ferdinand Thiessen 1df23140b8 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>
2024-12-19 18:56:46 +01:00
..
ClipboardFallback.ts feat(core): offer clipboard fallback for non-secure environments 2024-11-08 14:01:33 +01:00
RedirectUnsupportedBrowsers.js chore: Add SPDX header 2024-05-13 17:41:36 +02:00
xhr-request.js fix: Redirect user to login if session is terminated 2024-12-19 18:56:46 +01:00