【发布时间】:2020-08-22 21:06:48
【问题描述】:
1. User will do the login UserName and password.
2. If the login success then server will return JWT.
3. Now we will store the token.
4. Now for every request we will send the JWT Token for authentication on server.
我的问题是,我们可以将 JWT 令牌存储在哪里,因为本地存储、会话、Cookies 不安全。
【问题讨论】:
-
在“全局”可访问的数据结构中
-
这个问题已经被问过好几次了:这是我在回来的时候回答了一个小问题stackoverflow.com/questions/61259117/…
标签: node.js reactjs mongodb authentication jwt