From 950217ed3ca93a0aa0e964c2a8474ffc13c71912 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 3 Dec 2025 05:28:29 +0900 Subject: feat(auth): add user registration endpoint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implement POST /api/auth/register endpoint with: - Argon2 password hashing - Zod validation for username (1-255 chars) and password (8-255 chars) - Duplicate username check (returns 409 Conflict) - Returns created user with id, username, and createdAt 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- pkgs/shared/package.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'pkgs/shared/package.json') diff --git a/pkgs/shared/package.json b/pkgs/shared/package.json index d208456..8c50a8b 100644 --- a/pkgs/shared/package.json +++ b/pkgs/shared/package.json @@ -2,7 +2,14 @@ "name": "@kioku/shared", "version": "0.1.0", "private": true, - "main": "index.js", + "main": "./src/index.ts", + "types": "./src/index.ts", + "exports": { + ".": { + "types": "./src/index.ts", + "import": "./src/index.ts" + } + }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, -- cgit v1.2.3-70-g09d2