Files
ClassContent/历届学生/韩想/项目开发/练习项目/电商app/zhaojunkia/gouwu/笔记.txt
2024-09-27 02:06:13 +08:00

31 lines
432 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

jwt
RSA
让接口变得有状态
jons web token
后端渲染的网站
用户登录成功后,后端会保存用户登录信息到后端的cookies里面
前后端分离后:
用户登录
后端返回前端 token SADFREGTRHYGEAWE23435467UUYEW3EFGVBTRN
{
token: "SADFREGTRHYGEAWE23435467UUYEW3EFGVBTRN"
}
将token保存到本地
后面的请求需要在axios中自动获取本地token发送给后端