Version 1.3.31 and v1.4.0-beta.13 type inference error
The inferred type of 'IamProvider' cannot be named without a reference to '.pnpm/better-call@1.0.24/node_modules/better-call'. This is likely not portable. A type annotation is necessary. (ts 2742)
The inferred type of 'IamProvider' cannot be named without a reference to '.pnpm/better-call@1.0.24/node_modules/better-call'. This is likely not portable. A type annotation is necessary. (ts 2742)
Getting error while using Postgresql only
How to cancel Stripe subscription using API?
authClient.subscription.cancel just redirects users to the Stripe Billing Portal, which doesn’t suit my needs. I just want users to be able to click a button and cancel their subscription - nothing more. Has anyone achieved this properly?
Currently, I’ve implemented cancellation through the API, but now I’m thinking about how to synchronize it properly with Better-Auth. I noticed that the database isn’t updated after I cancel a subscription, etc.
My logic:...The recommended way of using the admin's listUser with TanStack Start
Header
Types are showing as 'any' on client after upgrading from v1.3.26

Getting session null in tanstack start beforeLoad
createServerFn to get current users session in beforeLoad, my code looks like this @Nitish 
```ts
// src/routes/__root.tsx
const getSession = createServerFn({ method: "GET" }).handler(() => {
    return authClient.getSession({.../api/auth/sign-in/social returns data, cookie is set, /get-session returns null
How can I use Better Auth with a Node.js Express backend and a separate Next.js frontend?
How can I properly configure Better Auth so that:
- The Express backend handles authentication logic and token validation securely.
- The Next.js frontend can interact with the backend for login, signup, and session management. ...
Organization Cache Not Invalidated on Logout
useListOrganizations() and useActiveOrganization(). When logging out and logging back in with a different user, the queries from useListOrganizations() and useActiveOrganization() return cached data from the previous user's session instead of fetching fresh data for the newly authenticated user.
Is there any known fix for this?...typing error with custom field
additionalFields become never or null | undefined in the signUpEmail body. This happens even with the example from the docs (lang field).
config (in a separate package in a monorepo) :
```ts...
Failed to create verification
Failed to create verification: null value in column "id" of relation "verification" violates not-null constraint
Failed to create verification: null value in column "id" of relation "verification" violates not-null constraint
Does better-auth support custom fields in 'create' events like``authClient.organization.createTeam``
Getting '# SERVER_ERROR: ' [TypeError: Invalid URL: '/'] on Github OAuth login
[CONVEX H(POST /api/auth/sign-in/social)] [ERROR] '# SERVER_ERROR: ' [TypeError: Invalid URL: '/']...Database/environment injection when creating Better Auth instance on the server
Make sure to export the auth instance with the variable name auth or as a default export.This means we can't create the auth instance inside a function, it musy be at top-level. But we need to pass the database while creating the Better Auth instance, and we use a function to create it for dependency injection purposes. Anything we can do here? We were surprised that we couldn't find anything about this on Github....
[Urgent] I keep getting 401s for valid API-Keys
Reset password - Auth login.
Sending additional custom fields on sign-up.
authClient.signUp.email function. This additional data will not necessarily be stored in my database but is needed for some logic in the "user create after" database hook.