From c915c21d47a2b417979b20e9e9d9b6ff30a03c0d Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Wed, 31 Dec 2025 19:51:21 +0900
Subject: refactor(client): use Hono InferResponseType for API response types
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Replace manually defined AuthResponse and User types with Hono's
InferResponseType to automatically derive types from server definitions.
This ensures client types stay in sync with server responses.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---
 src/client/stores/auth.tsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'src/client/stores/auth.tsx')

diff --git a/src/client/stores/auth.tsx b/src/client/stores/auth.tsx
index 58e9d40..b34717b 100644
--- a/src/client/stores/auth.tsx
+++ b/src/client/stores/auth.tsx
@@ -7,8 +7,7 @@ import {
 	useMemo,
 	useState,
 } from "react";
-import { ApiClientError, apiClient } from "../api/client";
-import type { User } from "../api/types";
+import { ApiClientError, apiClient, type User } from "../api/client";
 
 export interface AuthState {
 	user: User | null;
-- 
cgit v1.2.3-70-g09d2

