fix: remove usage of local storage for token
This commit is contained in:
1 parent
e068fa24f3
commit
a4e0762128
1 file changed
-1
@@ -239,7 +239,6 @@ const Register = ({ isSuperAdmin }) => {
|
|||||||
const action = await dispatch(register(registerForm));
|
const action = await dispatch(register(registerForm));
|
||||||
if (action.payload.success) {
|
if (action.payload.success) {
|
||||||
const authToken = action.payload.data;
|
const authToken = action.payload.data;
|
||||||
localStorage.setItem("token", JSON.stringify(authToken));
|
|
||||||
navigate("/uptime");
|
navigate("/uptime");
|
||||||
createToast({
|
createToast({
|
||||||
body: "Welcome! Your account was created successfully.",
|
body: "Welcome! Your account was created successfully.",
|
||||||
|
|||||||
Reference in new issue
Block a user