Strange issue in v2.16.1-beta
See original GitHub issueIf I use that driver
auth: require('@websanova/vue-auth/drivers/auth/bearer.js'),
Or
auth: {
request (req, token) {
this.options.http._setHeaders.call(this,
req, {
Authorization: `Bearer ${token}`
})
},
response ({data}) {
// Get Token from response body
return data
}
},
The error on the image bellow occurs.
Managed to escape the error and login, by removing token from second parameter (so I guess must be something to do with this parameter)
auth: {
request(req) {
this.options.http._setHeaders.call(this,
req, {
Authorization: `Bearer `
})
},
response({
data
}) {
// Get Token from response body
return data
}
},
But browser keeps logging this
xhr.js?ec6c:178 GET http://localhost:8080/auth/user 404 (Not Found)
Basic driver works fine. (but, naturally, need to modify the backend api)
Thanks!
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
iOS 16.1 Beta 2 Problems, Features, Bugs Fixed & More
Apple has released iOS 16.1 beta 2 (20B5050f)! Check out the new features, bugs fixed as well as new problems reported by our...
Read more >Apple Releases iOS 16.1 Beta 2 With Excessive Copy and ...
According to Apple's release notes, iOS 16.1 beta 2 fixes several known issues. Some of these involved pairing issues with Matter ...
Read more >Doctor Strange - Wikiwand
In issues #8–10 (May–September 1973), Strange is forced to shut down the Ancient One's mind, causing his mentor's physical death. Strange then assumes...
Read more >Apple iOS 16.1 beta 2 fixes the annoying copy-and-paste bug ...
Furthermore, the beta also added a dedicated section for accessories that support the unified smart home standard called Matter. Currently, the ...
Read more >iOS 16 Beta 2 - Bugs / Features / Fixes Megathread : r/iOSBeta
I haven't had that issue on even the first beta, things are cool on ... https://i.imgur.com/epgbA2f.jpg weird skinny battery circle shows up ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Well, if you have some dud key, you could also just run
$auth.logout()
which should clear everything.@Kuchiriel , I faced same error and same error messages while I deploy vue-auth. For My case, I found the symptoms. It caused by login again while already loged in. Then the key in the local storage that contains the html parts of error message. And it may cause error of next login request. This strange key only deleted after restart chrome itself. So I “auth: false” for /login route. Hope this help.