You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the jwt-strategy, Passport first verifies the JWT's signature and decodes the JSON. It then invokes our validate() method passing the decoded JSON as its single parameter.
Recall again that Passport will build a user object based on the return value of our validate() method, and attach it as a property on the Request object.
在example内的usernameFromContext函数可取到request.user,但在我自己的程序中request.user是未定义的,我想问下,是哪里没设置对?
The text was updated successfully, but these errors were encountered: