Skip to content

Commit

Permalink
fix(admin-ui): on invalid token, logout user
Browse files Browse the repository at this point in the history
  • Loading branch information
slvnperron committed Feb 4, 2019
1 parent 6428d75 commit 581126b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bp/ui-admin/src/api.js
Expand Up @@ -21,7 +21,7 @@ const createClient = (clientOptions, { toastErrors, addInterceptor }) => {
const wrappedError = _.get(error, 'response.data')
const errorCode = _.get(wrappedError, 'errorCode')
if (errorCode) {
if (errorCode === 'BP_0005') {
if (['BP_0005', 'BP_0041'].includes(errorCode)) {
return logout()
}
return Promise.reject(wrappedError)
Expand Down

0 comments on commit 581126b

Please sign in to comment.