更新JWT

This commit is contained in:
chfei committed 2026-10-23 19:28:17 +08:00
1 parent bb7162aaf6
commit 3769193696
16 files changed
+224 -141

No files matched your search

+3 -3
View File
@@ -1,8 +1,8 @@
@StoreHub_HostAddress = http://localhost:5295
@StoreHub_HostAddress = http://localhost:5295
# ============ 认证(JWT) ============
### 登录:返回 accessToken(单点登录,同用户新登录会使旧 token 失效)
### 登录:返回 token(同账号可同时登录,独立记录会话和 IP)
# @name login
POST {{StoreHub_HostAddress}}/api/v1/Auth/Login
Content-Type: application/json
@@ -16,7 +16,7 @@ Content-Type: application/json
GET {{StoreHub_HostAddress}}/api/v1/Auth/Me
Authorization: Bearer {{login.response.body.$.data.token}}
### 退出登录:销毁服务端会话,token 立即失效
### 退出登录:仅撤销当前会话,其他客户端不受影响
POST {{StoreHub_HostAddress}}/api/v1/Auth/Logout
Authorization: Bearer {{login.response.body.$.data.token}}