From dfa7c3d0d5061352a61e98134a85d5ec34cd3062 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 11 Apr 2026 19:14:02 +0530 Subject: [PATCH] refactor: rename useauth in store --- frontend/src/api/apiClient.ts | 2 +- frontend/src/hooks/useAuth.ts | 2 +- frontend/src/store/{useAuth.ts => useAuthStore.ts} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename frontend/src/store/{useAuth.ts => useAuthStore.ts} (100%) diff --git a/frontend/src/api/apiClient.ts b/frontend/src/api/apiClient.ts index 4953a33..2835de2 100644 --- a/frontend/src/api/apiClient.ts +++ b/frontend/src/api/apiClient.ts @@ -1,6 +1,6 @@ import axios from "axios"; import { endpoints } from "../config/endpoints"; -import { useAuthStore } from "../store/useAuth"; +import { useAuthStore } from "../store/useAuthStore"; // publicApi for endpoints that don't need authentication (login, refresh, register) export const publicApi = axios.create({ diff --git a/frontend/src/hooks/useAuth.ts b/frontend/src/hooks/useAuth.ts index 13a219c..afb7919 100644 --- a/frontend/src/hooks/useAuth.ts +++ b/frontend/src/hooks/useAuth.ts @@ -1,6 +1,6 @@ import { api, publicApi } from "../api/apiClient"; import { endpoints } from "../config/endpoints"; -import { useAuthStore } from "../store/useAuth"; +import { useAuthStore } from "../store/useAuthStore"; interface UserProfile { public_id: string; diff --git a/frontend/src/store/useAuth.ts b/frontend/src/store/useAuthStore.ts similarity index 100% rename from frontend/src/store/useAuth.ts rename to frontend/src/store/useAuthStore.ts