Reconmap/web-client

View on GitHub
src/contexts/AuthContext.jsx

Summary

Maintainability
A
1 hr
Test Coverage

Function useAuth has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function useAuth() {
    const { setColorMode } = useColorMode();
    const { i18n } = useTranslation();

    const [isAuth, setIsAuth] = useState(KeyCloakService.IsAuthenticated);
Severity: Minor
Found in src/contexts/AuthContext.jsx - About 1 hr to fix

There are no issues that match your filters.

Category
Status