feat(auth): 添加token前缀配置支持

- 在sa-token配置中增加token-prefix字段
- 默认设置为Bearer前缀以符合标准认证协议
- 支持前端Authorization头的标准格式配置
This commit is contained in:
海言
2026-05-28 16:28:48 +08:00
parent 11a70628ce
commit 0f9a28afb6

View File

@@ -2,6 +2,8 @@
sa-token:
# token name (frontend needs to use this name, e.g., Authorization: Bearer xxxx, or just satoken: xxxx)
token-name: Authorization
# token prefix (standard for Bearer tokens)
token-prefix: Bearer
# token validity period (seconds), -1 means never expire
timeout: 2592000
# token temporary validity (seconds), -1 means never expire