if (res.body.token == null || typeof res.body.token !== 'string') {
            console.error('Auth token is missing or not a string!')
            return dispatch(changePage(pageTypes.LOGIN))
          }