I have the following method from my vuex action block where I send user email and password to backend server and get userId and token on success.