useSession is not is not callable ?

need help with the clients hooks every client hook gives me a typescript error like this

This expression is not callable. No constituent of type 'Atom<{ data: { session: { userAgent: string | null | undefined; id: string; createdAt: Date; updatedAt: Date; userId: string; expiresAt: Date; token: string; ipAddress?: string | null | undefined; }; user: { ...; }; } | null; error: BetterFetchError | null; isPending: boolean; }>' is callable.ts(2349)
Solution
My guess is your auth client is importing
createAuthClient
from
better-auth/client
rather than
better-auth/react
Was this page helpful?