Enhance Authentication and Feature Usage Handling
Deploy Development / deploy (push) Successful in 43s
Test Suite / pytest-backend (push) Successful in 42s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Failing after 1m15s
Deploy Development / deploy (push) Successful in 43s
Test Suite / pytest-backend (push) Successful in 42s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Failing after 1m15s
- Refactored the logout function in AuthContext to handle asynchronous logout operations, improving session management. - Updated the FeatureUsageBadge component to display error messages when feature data retrieval fails, enhancing user feedback. - Replaced lazy loading of OnboardingPage with lazyWithRetry for improved loading reliability. - Adjusted the EntitlementsContext to determine club ID using utility functions for better governance form handling.
This commit is contained in:
1 parent
91dae7b614
commit
8718cf5c70
5 files changed
+55
-11
No files matched your search
@@ -122,7 +122,12 @@ export function AuthProvider({ children }) {
|
||||
setUser(payload)
|
||||
}, [])
|
||||
|
||||
const logout = useCallback(() => {
|
||||
const logout = useCallback(async () => {
|
||||
try {
|
||||
await api.logout()
|
||||
} catch {
|
||||
/* Session lokal trotzdem beenden */
|
||||
}
|
||||
setUser(null)
|
||||
localStorage.removeItem('authToken')
|
||||
localStorage.removeItem(ACTIVE_CLUB_STORAGE_KEY)
|
||||
|
||||
Reference in new issue
Block a user