护照可以保存用户对象不在req.user?
护照在默认情况下将其用户对象保存在req.user
。 我可以configuration它保存在其他地方,如req.whatever
?
你可以使用任何名字。 这里是如何configuration它。
app.configure(function() { app.use(passport.initialize({ userProperty: 'yourName' })); });
护照在默认情况下将其用户对象保存在req.user
。 我可以configuration它保存在其他地方,如req.whatever
?
你可以使用任何名字。 这里是如何configuration它。
app.configure(function() { app.use(passport.initialize({ userProperty: 'yourName' })); });