Skip to content

Commit 67e4e7e

Browse files
author
Manjesh Vinayaka
committed
req.user is now available to get session details
1 parent 110b70d commit 67e4e7e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

components/oauth/authenticate.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,8 @@ module.exports = function(options){
2626
oauth.authenticate(request, response,options)
2727
.then(function (token) {
2828
// Request is authorized.
29-
// Todo: Temporary for req.user or req.session
30-
var bearer = req.headers.authorization.replace('Bearer','').replace('bearer','').trim()
3129
req.user = token
3230
next()
33-
3431
})
3532
.catch(function (err) {
3633
// Request is not authorized.

0 commit comments

Comments
 (0)