PanJiaChen/vue-admin-template · error
Verification failed, please Login again.
Error message
Verification failed, please Login again.
What it means
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.
Source
Thrown at src/store/modules/user.js:53
login({ username: username.trim(), password: password }).then(response => {
const { data } = response
commit('SET_TOKEN', data.token)
setToken(data.token)
resolve()
}).catch(error => {
reject(error)
})
})
},
// get user info
getInfo({ commit, state }) {
return new Promise((resolve, reject) => {
getInfo(state.token).then(response => {
const { data } = response
if (!data) {
return reject('Verification failed, please Login again.')
}
const { name, avatar } = data
commit('SET_NAME', name)
commit('SET_AVATAR', avatar)
resolve(data)
}).catch(error => {
reject(error)
})
})
},
// user logout
logout({ commit, state }) {
return new Promise((resolve, reject) => {
logout(state.token).then(() => {
removeToken() // must remove token firstView on GitHub (pinned to 4c18a3f47b)
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
Defensive patterns
Strategy: type-guard
When it happens
Trigger: Thrown at src/store/modules/user.js:53 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of PanJiaChen/vue-admin-template@4c18a3f47b (2026-09-02).
Data as JSON: /api/errors/3830c63b48feb746.
Report an issue: GitHub.