0👍
You should save the access_token
in the success case.
this.$auth.login({
data: {
username: this.model.email,
password: this.model.password
},
success: function (response) {
alert(response)
console.log(response)
this.$auth.token('access_token', response.data.access_token)
}
- [Vuejs]-Open modal dialog on event bus event
- [Vuejs]-How to create users in Django's backend database when using Vue.js and Auth0 for frontend authentication
Source:stackexchange.com