[Vuejs]-Nuxt Auth middleware making empty request to the user endpoint

0👍

Please set get request nuxt.config and also api endpoint.Thanks

 user: { url: '/users/username/', method: 'get', propertyName: 'User' }'

0👍

According login endpoint, auth must receive 'token' propertyName, but what showed in your response screenshot you received 'auth' property as response, you should change your backend to return token property directly (not nested property) or change your login endpoint propertyName, you can check token set correctly by call

console.log( this.$auth.getToken('local') );

Leave a comment