diff --git a/frontend/src/store/store.ts b/frontend/src/store/store.ts
new file mode 100644
index 0000000..d3fc432
--- /dev/null
+++ b/frontend/src/store/store.ts
@@ -0,0 +1,4 @@
+import { atomWithStorage } from 'jotai/utils'
+
+export const token = atomWithStorage("token", "")
+export const username = atomWithStorage("username", "")
\ No newline at end of file
diff --git a/frontend/src/views/Login.tsx b/frontend/src/views/Login.tsx
index a95132b..9c798fb 100644
--- a/frontend/src/views/Login.tsx
+++ b/frontend/src/views/Login.tsx
@@ -11,63 +11,54 @@ import Typography from '@mui/material/Typography';
import Container from '@mui/material/Container';
import Snackbar from '@mui/material/Snackbar';
import Alert from '@mui/material/Alert';
-import { loadable } from "jotai/utils"
-import { atom, useAtom } from "jotai"
import Backdrop from '@mui/material/Backdrop';
import CircularProgress from '@mui/material/CircularProgress';
+import { useSetAtom } from 'jotai';
+import { token, username } from '@/store/store'
-const loginData = atom({ email: "", password: "" })
-const loginErr = atom("")
-const fetchReg = loadable(atom(async (get) => {
- const ld = get(loginData)
+function ToLogin() {
+ return (
+ <>
+
{JSON.stringify(value.data)}
- > - ) -}) - + return data as tokenData +} export default function SignIn() { const [emailErr, setEmailErr] = useState(""); - const [err, setErr] = useAtom(loginErr); + const [err, setErr] = useState(""); const [login, setLogin] = useState(false); - const [, setloginData] = useAtom(loginData); + const setToken = useSetAtom(token) + const setUsername = useSetAtom(username) const handleSubmit = (event: React.FormEvent