node.js - Force login a user as a locally generated user when using OAuth2 strategy in PassportJS? -


is possible force login user locally generated user when using oauth2 strategy in passportjs? need force login of specific user purposes of developing on local. maybe manually generating auth cookie or something?

turns out login method used this. in route handler, put this:

    if req.headers.host == 'localhost'         user = {id: 109593029532252360621}         req.login user, (err) ->             if !err                 return res.redirect('/') 

Comments

Popular posts from this blog

Prolog - Listing -

orchardcms - change base url in local copy in Orchard CMS -

python - More Issues with overlapping labels in Tkinter -