diff --git a/src/Pages/Auth/Register/Register.jsx b/src/Pages/Auth/Register/Register.jsx index 9f93cc821..67968c83f 100644 --- a/src/Pages/Auth/Register/Register.jsx +++ b/src/Pages/Auth/Register/Register.jsx @@ -239,7 +239,7 @@ const Register = ({ isSuperAdmin }) => { const action = await dispatch(register(registerForm)); if (action.payload.success) { const authToken = action.payload.data; - localStorage.setItem("token", authToken); + localStorage.setItem("token", JSON.stringify(authToken)); navigate("/uptime"); createToast({ body: "Welcome! Your account was created successfully.",