refactor: hide theme toggle and lang dropdown in header when logged in

This commit is contained in:
2026-02-07 11:43:16 +01:00
parent bb50615e0a
commit 9346de85e7
2 changed files with 48 additions and 48 deletions

View File

@@ -156,11 +156,10 @@ class DirectusService {
if (response.status === 401 && this.refreshToken && !endpoint.startsWith('/auth/')) {
const refreshed = await this.refreshSession()
if (refreshed) {
headers['Authorization'] = `Bearer ${this.accessToken}`
return this.request(endpoint, options)
} else {
// Refresh failed - clear tokens to prevent loops
this.clearTokens()
return this.request(endpoint, options)
}
}