app/frontend/src/store/modules/auth.js
Showing 3 of 3 total issues
Function login
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
login({ commit, getters }, idpHint = undefined) { if (getters.keycloakReady) { // Use existing redirect uri if available if (!getters.redirectUri) commit('SET_REDIRECTURI', location.toString());
- Read upRead up
Function hasResourceRoles
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
hasResourceRoles: (_state, getters) => (resource, roles) => { if (!getters.authenticated) return false; if (!roles.length) return true; // No roles to check against if (getters.resourceAccess[resource]) {
- Read upRead up
Parsing error: 'import' and 'export' may appear only with 'sourceType: module' Open
Open
import Vue from 'vue';
- Read upRead up
- Exclude checks