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