From 742c3e55b08b37d0eb031f72a6d952bc7b7164b3 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 3 Dec 2025 05:34:44 +0900 Subject: feat(auth): add login endpoint with JWT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implement POST /api/auth/login endpoint that validates credentials and returns a JWT access token on successful authentication. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- pkgs/server/vitest.config.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkgs/server/vitest.config.ts') diff --git a/pkgs/server/vitest.config.ts b/pkgs/server/vitest.config.ts index 076c92f..af9649f 100644 --- a/pkgs/server/vitest.config.ts +++ b/pkgs/server/vitest.config.ts @@ -3,5 +3,8 @@ import { defineConfig } from "vitest/config"; export default defineConfig({ test: { globals: true, + env: { + JWT_SECRET: "test-secret-key", + }, }, }); -- cgit v1.2.3-70-g09d2