From a1a18afb618b838255d18520ac5c6ec917a0e14b Mon Sep 17 00:00:00 2001 From: Chris Ewald Date: Tue, 4 Nov 2025 13:21:54 -0500 Subject: [PATCH] Fix undefined 'id' property error --- src/react/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/react/index.tsx b/src/react/index.tsx index 2703788..98deb7e 100644 --- a/src/react/index.tsx +++ b/src/react/index.tsx @@ -93,7 +93,7 @@ function useUseAuthFromBetterAuth(authClient: AuthClient) { function useAuthFromBetterAuth() { const { data: session, isPending: isSessionPending } = authClient.useSession(); - const sessionId = session?.session.id; + const sessionId = session?.session?.id; const fetchAccessToken = useCallback( async () => { try {