Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

關於使用者登入API使用Token的相關問題 #4

Open
magicsung opened this issue Jun 7, 2016 · 0 comments
Open

關於使用者登入API使用Token的相關問題 #4

magicsung opened this issue Jun 7, 2016 · 0 comments
Labels

Comments

@magicsung
Copy link

magicsung commented Jun 7, 2016

@magicsung 最近在用node js實作使用者登入,關於Token應該包含哪些東西,請問有大大可以提示一下嗎?
目前是只有把user ID包進Token,server收到token解開後用id去認user,這樣的做法妥當嗎?

@metavige 可以試試 jwt
https://github.com/auth0/node-jsonwebtoken
node-jsonwebtoken - JsonWebToken implementation for node.js http://self-issued.info/docs/draft-ietf-oauth-json-web-token.html

@magicsung magicsung changed the title 使用者登入APIjp4wu6 關於使用者登入API使用Token的相關問題 Jun 7, 2016
@maoyang maoyang added the 問答 label Jun 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants