fix: Allow users to login even if they have access to more than 15 accounts (#4475)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
/* eslint no-console: 0 */
|
||||
import Auth from '../api/auth';
|
||||
|
||||
const parseErrorCode = error => Promise.reject(error);
|
||||
@@ -7,7 +6,7 @@ export default axios => {
|
||||
const { apiHost = '' } = window.chatwootConfig || {};
|
||||
const wootApi = axios.create({ baseURL: `${apiHost}/` });
|
||||
// Add Auth Headers to requests if logged in
|
||||
if (Auth.isLoggedIn()) {
|
||||
if (Auth.hasAuthCookie()) {
|
||||
const {
|
||||
'access-token': accessToken,
|
||||
'token-type': tokenType,
|
||||
|
||||
Reference in New Issue
Block a user