We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14b261f commit 46159f2Copy full SHA for 46159f2
src/react/index.tsx
@@ -92,7 +92,7 @@ function useUseAuthFromBetterAuth(authClient: AuthClient) {
92
function useAuthFromBetterAuth() {
93
const { data: session, isPending: isSessionPending } =
94
authClient.useSession();
95
- const sessionId = session?.session.id;
+ const sessionId = session?.session?.id;
96
const fetchAccessToken = useCallback(
97
async () => {
98
try {
0 commit comments