Answer the question
In order to leave comments, you need to log in
Explain the logic of auth using nuxt auth as an example?
How to connect and send requests to the server - figured it out. I can't understand the logic, there are 3 query points in the config:
auth: {
strategies: {
lendpoints: {
login: { url: '/api/login/', method: 'post', propertyName: 'token' },
logout: { url: '/api/auth/logout', method: 'post' },
user: { url: '/api/user/', method: 'get', propertyName: 'user' }
},
}
}
},
return this.$auth
.loginWith('local',
{
data: qs.stringify({
login: 'admin',
password: '123456'
})
}
).then(() => {
alert('Logged In!')
})
, Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question