aithA
Convex Community3mo ago
23 replies
aith

If I just keep the BetterAuth provider

If I just keep the BetterAuth provider and remove the "expectAuth" property, then I get errors on the components where authentication is required. For example I have a sidebar that displays user's info and I just get this:
[CONVEX Q(auth:getCurrentUser)] [Request ID: db9231822e85f5aa] Server Error
Uncaught Error: Unauthenticated
    at getAuthUser [as getAuthUser] (../../node_modules/@convex-dev/better-auth/src/client/index.ts:538:13)

  Called by client
<AppSidebar />
Was this page helpful?