if (res.body.profile == null || typeof res.body.profile !== 'object') {
          console.error('Auth profile is missing or not an object!')
          return dispatch(loginError())
        }