We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 110b70d commit 67e4e7eCopy full SHA for 67e4e7e
components/oauth/authenticate.js
@@ -26,11 +26,8 @@ module.exports = function(options){
26
oauth.authenticate(request, response,options)
27
.then(function (token) {
28
// Request is authorized.
29
- // Todo: Temporary for req.user or req.session
30
- var bearer = req.headers.authorization.replace('Bearer','').replace('bearer','').trim()
31
req.user = token
32
next()
33
-
34
})
35
.catch(function (err) {
36
// Request is not authorized.
0 commit comments