adding in proper creation of user
This commit is contained in:
@@ -9,7 +9,6 @@ export default function ProtectedRoute({
|
||||
children?: React.ReactNode;
|
||||
}) {
|
||||
const { data, isLoading, isError, refetch } = useGetUserDetails();
|
||||
console.log(data);
|
||||
|
||||
if (isLoading)
|
||||
return (
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user