This commit is contained in:
chy
2025-06-05 10:20:01 +08:00
parent a9dabbbe21
commit 27c6445fe6
5 changed files with 1 additions and 49 deletions

View File

@ -40,7 +40,7 @@ func Auth(r *ghttp.Request) {
if err != nil {
Exit(r, err)
}
r.SetCtxVar("userId", tokenOut.UserId)
r.SetCtxVar("id", tokenOut.UserId)
r.SetCtxVar("role", tokenOut.Role)
r.SetCtxVar("jti", tokenOut.JTI)
}