mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 08:56:52 +00:00
refactor: rename useauth in store
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import { endpoints } from "../config/endpoints";
|
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)
|
// publicApi for endpoints that don't need authentication (login, refresh, register)
|
||||||
export const publicApi = axios.create({
|
export const publicApi = axios.create({
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { api, publicApi } from "../api/apiClient";
|
import { api, publicApi } from "../api/apiClient";
|
||||||
import { endpoints } from "../config/endpoints";
|
import { endpoints } from "../config/endpoints";
|
||||||
import { useAuthStore } from "../store/useAuth";
|
import { useAuthStore } from "../store/useAuthStore";
|
||||||
|
|
||||||
interface UserProfile {
|
interface UserProfile {
|
||||||
public_id: string;
|
public_id: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user