feat: magic link login/reg
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import { useEffect } from "react";
|
||||
import { useDispatch, batch } from "react-redux";
|
||||
import { resetAuthData } from "../../app/slices/auth.data";
|
||||
import { resetFootprint } from "../../app/slices/footprint";
|
||||
import { resetChannels } from "../../app/slices/channels";
|
||||
import { resetContacts } from "../../app/slices/contacts";
|
||||
@@ -26,11 +24,5 @@ export default function useLogout() {
|
||||
});
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
if (isSuccess) {
|
||||
dispatch(resetAuthData());
|
||||
}
|
||||
}, [isSuccess]);
|
||||
|
||||
return { clearLocalData, logout, exited: isSuccess, exiting: isLoading };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user