I'm trying to log in a user using the vuex store.
onSubmit() {
this.$store
.dispatch("auth/authenticate", {
username: "Sibi",
password: "123",
strategy: "local"
})
.then(function(result) {
console.log("Authenticated!", result);
})
.catch(function(error) {
console.error("Error authenticating!", error);
});
}
I have followed the docs and everything seems to be working for the signup. Even if I hardcode the username and password it still shows Invalid