I have front-end server on nuxt.js and backend in django with django-rest-framework. Can anyone give me example of refreshing jwt token with nuxt-auth local strategy? I was tryed save token in vuex store, but this code return undefined
var dr = await this.$auth
.loginWith('local', {
data: {
username: this.username,
password: this.password
}
})
.then(response => {
console.log(response)
})
.catch(e => {
this.error = e + ''
})