updated the keypair generation mechanism to use user signatures instead of storing the keys in the localstorage

This commit is contained in:
Yash Goyal
2024-04-27 21:15:29 +05:30
parent 78fa5d74b9
commit 7727656d34

View File

@@ -29,13 +29,13 @@ export default function AuthContextProvider({ children }: { children: React.Reac
}, []);
useEffect(() => {
if (!address) {
if (!address || !signMessage) {
setKeyPair(null);
return;
}
signMessage();
}, [address]);
}, [address, signMessage]);
useEffect(() => {
if (!signature) return;