visual
All checks were successful
Deploy / deploy-staging (push) Successful in 25s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-08-14 01:24:24 +02:00
parent 97e5a2e2da
commit 6de12f164d
5 changed files with 201 additions and 18 deletions

View File

@@ -473,6 +473,16 @@
source: requestUrl,
});
}
if (response.status === 401) {
emitDebug({
type: 'request:unauthorized',
method: requestOptions.method || 'GET',
url: requestUrl,
redirect_to: '/auth/keycloak',
});
window.location.href = '/auth/keycloak';
throw new Error('Nicht autorisiert. Weiterleitung zum Login.');
}
if (!response.ok) {
const context = payload && payload.context && typeof payload.context === 'object' ? payload.context : null;
const detail = context