chore: 清理 JWT 向后兼容残留,移除全部死代码
- 删除 5 个空壳占位文件:auth_token.go/auth_parser.go/repository.go(middleware)/token_service.go/provider.go - 移除 Config.JWT 字段、JWTConfig 结构体、JWT_SECRET 环境变量绑定 - 移除 config.yaml 中的 jwt 配置段 - 移除 model.User.TokenVersion 字段(session DestroyByUID 替代) - 移除 service/repository.go 中已废弃的 userTokenStore 接口
This commit is contained in:
@ -1,3 +0,0 @@
|
||||
package middleware
|
||||
|
||||
// auth_parser.go: JWT 解析逻辑已被服务端 Session 替换,本文件保留占位,后续清理。
|
||||
@ -1,3 +0,0 @@
|
||||
package middleware
|
||||
|
||||
// auth_token.go: JWT 解析逻辑已被服务端 Session 替换,本文件保留占位,后续清理。
|
||||
@ -1,3 +0,0 @@
|
||||
package middleware
|
||||
|
||||
// repository.go: JWT tokenVersionStore 接口已随 Session 迁移移除,保留占位,后续清理。
|
||||
Reference in New Issue
Block a user