This commit is contained in:
2025-02-11 14:56:48 +05:30
parent 1041528f1e
commit 22f31a76cb

View File

@@ -5,13 +5,8 @@ type AuthState = {
};
const initialState: AuthState = {
<<<<<<< HEAD
token: localStorage.getItem("token"), // Load token from localStorage
};
=======
token: localStorage.getItem("token") || null, // ✅ Ensures token is either a string or null
};
>>>>>>> 7a7aeab5b877a665b488245d14c520a0dc3df1c9
const authSlice = createSlice({
name: "auth",