feat(auth): Add JWT token authentication support with validation

This commit is contained in:
cogwheel0
2025-12-05 11:24:03 +05:30
parent 1ad43d372a
commit bee8fda9f7
11 changed files with 117 additions and 13 deletions

View File

@@ -46,9 +46,11 @@
"enterCredentials": "輸入您的憑據以訪問您的 AI 對話",
"credentials": "憑據",
"apiKey": "API 密鑰",
"token": "令牌",
"usernameOrEmail": "用戶名或電子郵件",
"password": "密碼",
"signInWithApiKey": "使用 API 密鑰登錄",
"signInWithToken": "使用令牌登錄",
"connectToServer": "連接到服務器",
"enterServerAddress": "輸入您的 Open-WebUI 服務器地址以開始",
"serverUrl": "服務器 URL",
@@ -225,6 +227,10 @@
"usernameOrEmailHint": "輸入您的用戶名或電子郵件",
"passwordHint": "輸入您的密碼",
"enterApiKey": "輸入您的 API 密鑰",
"enterToken": "輸入您的 JWT 令牌",
"tokenHint": "請使用瀏覽器 cookie 或 API 登入中的 JWT 令牌。API 密鑰 (sk-...) 不支援串流。",
"apiKeyNotSupported": "不支援 API 密鑰 (sk-...)。請改用 JWT 令牌。",
"tokenTooShort": "令牌太短",
"signingIn": "正在登錄...",
"advancedSettings": "高級設置",
"customHeaders": "自定義標頭",