This commit is contained in:
YasinShaikh123
2025-02-11 14:57:27 +05:30
3 changed files with 9 additions and 4 deletions

View File

@@ -82,7 +82,7 @@ define(['./workbox-54d0af47'], (function (workbox) { 'use strict';
"revision": "3ca0b8505b4bec776b69afdba2768812"
}, {
"url": "index.html",
"revision": "0.g82l9bbo3ro"
"revision": "0.s1fup7lrbig"
}], {});
workbox.cleanupOutdatedCaches();
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {

View File

@@ -52,6 +52,7 @@ const Login = () => {
Authorization: `Basic ${basicAuth}`,
"Content-Type": "application/json",
},
}
);
@@ -70,11 +71,15 @@ const Login = () => {
} catch (error) {
if (error) {
console.error("Login failed", error);
setIsLoading(false);
setIsLoading(false)
}
}
});
return (
<VStack w={"100%"} h={"100vh"} bg={"#ffffff"}>
<HStack

View File

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