From 3923eb2f86c304bbd90c4eae9a338f7bc21c9e90 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 6 Dec 2025 18:30:04 +0900 Subject: feat(client): add auth store with React context MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implements token management via AuthProvider context that wraps the app. Provides useAuth hook for components to access auth state and actions (login, register, logout). Includes comprehensive tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/client/main.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/client/main.tsx') diff --git a/src/client/main.tsx b/src/client/main.tsx index 1e185be..5a12f68 100644 --- a/src/client/main.tsx +++ b/src/client/main.tsx @@ -1,6 +1,7 @@ import { StrictMode } from "react"; import { createRoot } from "react-dom/client"; import { App } from "./App"; +import { AuthProvider } from "./stores"; const rootElement = document.getElementById("root"); if (!rootElement) { @@ -9,6 +10,8 @@ if (!rootElement) { createRoot(rootElement).render( - + + + , ); -- cgit v1.2.3-70-g09d2