fix(test): update JWT secret to match .env configuration

Fixed JWT secret in test_create_session.go to use the same secret key
as configured in .env file, resolving 401 Unauthorized errors during
keygen session creation tests.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-06 03:54:12 -08:00
parent 77fa40d27f
commit 63e00a64f5
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ func main() {
// Get JWT secret from environment or use test value
jwtSecret := os.Getenv("JWT_SECRET_KEY")
if jwtSecret == "" {
jwtSecret = "test-jwt-secret-key-please-change-in-production"
jwtSecret = "change_this_jwt_secret_key_to_random_value_min_32_chars"
}
// Generate access token