{"record":{"id":"3830c63b48feb746","repo":"PanJiaChen/vue-admin-template","slug":"verification-failed-please-login-again","errorCode":null,"errorMessage":"Verification failed, please Login again.","messagePattern":"Verification failed, please Login again\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/store/modules/user.js","lineNumber":53,"sourceCode":"      login({ username: username.trim(), password: password }).then(response => {\n        const { data } = response\n        commit('SET_TOKEN', data.token)\n        setToken(data.token)\n        resolve()\n      }).catch(error => {\n        reject(error)\n      })\n    })\n  },\n\n  // get user info\n  getInfo({ commit, state }) {\n    return new Promise((resolve, reject) => {\n      getInfo(state.token).then(response => {\n        const { data } = response\n\n        if (!data) {\n          return reject('Verification failed, please Login again.')\n        }\n\n        const { name, avatar } = data\n\n        commit('SET_NAME', name)\n        commit('SET_AVATAR', avatar)\n        resolve(data)\n      }).catch(error => {\n        reject(error)\n      })\n    })\n  },\n\n  // user logout\n  logout({ commit, state }) {\n    return new Promise((resolve, reject) => {\n      logout(state.token).then(() => {\n        removeToken() // must remove  token  first","sourceCodeStart":35,"sourceCodeEnd":71,"githubUrl":"https://github.com/PanJiaChen/vue-admin-template/blob/4c18a3f47bdb417ad8a25f09910f848cb574dee2/src/store/modules/user.js#L35-L71","documentation":"Sentinel rejection inside the user store's getInfo action: fires when the getInfo API resolves successfully but the response contains no 'data' payload, meaning the token was accepted at HTTP level yet yielded no user info — treated as failed verification rather than proceeding with an empty user object.","triggerScenarios":"Thrown at src/store/modules/user.js:53 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Reset the token and log in again to fetch a valid user profile","Check that the backend /user/info endpoint returns a populated data object for the current token","Verify the token being sent is valid and not expired before calling getInfo"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c18a3f47bdb417ad8a25f09910f848cb574dee2","analyzedAt":"2026-09-02T02:49:53.558Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T06:17:21.866Z"}