我正在使用 JWT 保护节点 js url https://github.com/auth0/express-jwt
I'm using the JWT to protect node js urls https://github.com/auth0/express-jwt
要创建 JWT 令牌用户会话,我只需这样做:
To create a JWT token user session i simply do:
-> auth/signup
-> jwt.sign(user_profile,secret,expireInMinutes:{900000000 /*almost never expires*