set header for axios - set get api bank cards

This commit is contained in:
Alihaghighattalab
2024-08-13 11:45:07 +03:30
parent 4a93066255
commit f3b37a5d4a
6 changed files with 30 additions and 18 deletions
-11
View File
@@ -1,11 +0,0 @@
import create from 'zustand';
interface AuthState {
token: string | null;
setToken: (token: string | null) => void;
}
export const useAuthStore = create<AuthState>((set) => ({
token: null,
setToken: (token) => set({ token }),
}));