From 26df54a09d7e195d0e33266e0b34f8e11d072277 Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Sun, 7 Dec 2025 03:24:42 +0900
Subject: feat(client): remove registration page

---
 src/client/stores/auth.tsx | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

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

diff --git a/src/client/stores/auth.tsx b/src/client/stores/auth.tsx
index cca314a..58e9d40 100644
--- a/src/client/stores/auth.tsx
+++ b/src/client/stores/auth.tsx
@@ -18,7 +18,6 @@ export interface AuthState {
 
 export interface AuthActions {
 	login: (username: string, password: string) => Promise<void>;
-	register: (username: string, password: string) => Promise<void>;
 	logout: () => void;
 }
 
@@ -52,15 +51,6 @@ export function AuthProvider({ children }: AuthProviderProps) {
 		setUser(response.user);
 	}, []);
 
-	const register = useCallback(
-		async (username: string, password: string) => {
-			await apiClient.register(username, password);
-			// After registration, log in automatically
-			await login(username, password);
-		},
-		[login],
-	);
-
 	const logout = useCallback(() => {
 		apiClient.logout();
 		setUser(null);
@@ -74,10 +64,9 @@ export function AuthProvider({ children }: AuthProviderProps) {
 			isAuthenticated,
 			isLoading,
 			login,
-			register,
 			logout,
 		}),
-		[user, isAuthenticated, isLoading, login, register, logout],
+		[user, isAuthenticated, isLoading, login, logout],
 	);
 
 	return <AuthContext.Provider value={value}>{children}</AuthContext.Provider>;
-- 
cgit v1.2.3-70-g09d2

