adding in proper creation of user

This commit is contained in:
talksik
2022-03-18 17:34:51 -04:00
parent 0a126900b9
commit b9d38a6484
9 changed files with 113 additions and 52 deletions
@@ -9,7 +9,6 @@ export default function ProtectedRoute({
children?: React.ReactNode;
}) {
const { data, isLoading, isError, refetch } = useGetUserDetails();
console.log(data);
if (isLoading)
return (
+1 -1
View File
@@ -2,7 +2,7 @@
<html>
<head>
<meta charset="UTF-8" />
<title>Hello World!</title>
<title>Nirvana</title>
</head>
<body>
<div id="root"></div>
@@ -37,6 +37,9 @@ export default function Login({ onReady }: { onReady: Function }) {
};
useEffect(() => {
// hack for now log out in this case
logOut();
// see if we have tokens in localstorage in which case we can continue on
window.electronAPI.store
.get(STORE_ITEMS.AUTH_TOKENS)