[GH-ISSUE #2139] Missing disableRefresh type for auth.api.getSession #9065

Closed
opened 2026-04-13 04:21:38 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @Suu-ly on GitHub (Apr 5, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/2139

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

const session = await auth.api
    .getSession({
      headers: await headers(),
      query: {
        disableRefresh: true,
      },
    })

Current vs. Expected behavior

disableRefresh type missing when calling auth.api.getSession. The type is present when calling from authClient.getSession.

What version of Better Auth are you using?

1.2.5

Provide environment information

-

Which area(s) are affected? (Select all that apply)

Types

Auth config (if applicable)

import { betterAuth } from "better-auth"
export const auth = betterAuth({
  emailAndPassword: {  
    enabled: true
  },
});

Additional context

Image

Originally created by @Suu-ly on GitHub (Apr 5, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/2139 ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce ``` TypeScript const session = await auth.api .getSession({ headers: await headers(), query: { disableRefresh: true, }, }) ``` ### Current vs. Expected behavior `disableRefresh` type missing when calling `auth.api.getSession`. The type is present when calling from `authClient.getSession`. ### What version of Better Auth are you using? 1.2.5 ### Provide environment information ```bash - ``` ### Which area(s) are affected? (Select all that apply) Types ### Auth config (if applicable) ```typescript import { betterAuth } from "better-auth" export const auth = betterAuth({ emailAndPassword: { enabled: true }, }); ``` ### Additional context ![Image](https://github.com/user-attachments/assets/cba97b87-bccd-446b-ac38-9e4ca04dd667)
GiteaMirror added the locked label 2026-04-13 04:21:38 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#9065