Using nuxt-auth for authentication. The endpoints are configured like this.
auth: {
strategies: {
local: {
endpoints: {
login: {url: '/sellers/login', method: 'post', propertyName: 'How to ref header here'},
logout: {url: '/api/auth/logout', method: 'post'},
user: false
},
// tokenRequired: true,
tokenType: ''
}
}
}
But server is sending token in response header instead of body. So nuxt-auth is not working. How can I fix this?
This issue as been imported as question since it does not respect auth-module issue template. Only bug reports and feature requests stays open to reduce maintainers workload.
If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically.
Your question is available at https://cmty.app/nuxt/auth-module/issues/c473.
I'm having this exact same issue. Did you find a solution @flyingboy007 ?
sigh.. I have exact same issue.. server returns authorizing token as header.. and nowhere in docs does it say how to handle this. Did you find a solution @sergiocastrovale @flyingboy007 ?
No. I updated the server to return it in body. Not that happy with this
solution. But until I find a way I will keep it like this.
On Sat 11 Jul, 2020, 7:05 PM C-Bass, notifications@github.com wrote:
sigh.. I have exact same issue.. server returns authorizing token as
header.. and nowhere in docs does it say how to handle this. Did you find a
solution @sergiocastrovale https://github.com/sergiocastrovale
@flyingboy007 https://github.com/flyingboy007 ?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nuxt-community/auth-module/issues/517#issuecomment-657063359,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABN62QK76CS7DY7FT6G2DODR3BTCHANCNFSM4KEYSIIA
.