Skip to content

Commit 86d9676

Browse files
authored
move auth to store and cleanup (#127)
1 parent 84a84ab commit 86d9676

File tree

3 files changed

+197
-156
lines changed

3 files changed

+197
-156
lines changed

apps/events/src/routes/__root.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ import { TanStackRouterDevtools } from '@tanstack/router-devtools';
55

66
export const Route = createRootRoute({
77
component: () => {
8-
const { authenticated, getIdentity } = Hypergraph.useHypergraphApp();
9-
10-
const graphIdentity = getIdentity();
8+
const authenticated = Hypergraph.useAuthenticated();
9+
const graphIdentity = Hypergraph.useHypergraphIdentity();
1110

1211
const router = useRouter();
1312

0 commit comments

Comments
 (0)