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

@@ -216,6 +216,10 @@
"@apiKey": {
"description": "Label for API key input field."
},
"token": "Token",
"@token": {
"description": "Label for JWT token input field."
},
"usernameOrEmail": "Username or Email",
"@usernameOrEmail": {
"description": "Label for username/email input field."
@@ -228,6 +232,10 @@
"@signInWithApiKey": {
"description": "Alternative sign-in method using an API key."
},
"signInWithToken": "Sign in with Token",
"@signInWithToken": {
"description": "Alternative sign-in method using a JWT token."
},
"connectToServer": "Connect to Server",
"@connectToServer": {
"description": "Call-to-action button for server connection."
@@ -1004,6 +1012,22 @@
"@enterApiKey": {
"description": "Hint text for API key input."
},
"enterToken": "Enter your JWT token",
"@enterToken": {
"description": "Hint text for JWT token input."
},
"tokenHint": "Use a JWT token from browser cookies or API login. API keys (sk-...) are not supported for streaming.",
"@tokenHint": {
"description": "Help text explaining what type of token to use."
},
"apiKeyNotSupported": "API keys (sk-...) are not supported. Please use a JWT token instead.",
"@apiKeyNotSupported": {
"description": "Error message when user tries to use an API key instead of JWT token."
},
"tokenTooShort": "Token is too short",
"@tokenTooShort": {
"description": "Error message when token is too short."
},
"signingIn": "Signing in...",
"@signingIn": {
"description": "Status message shown while signing in."