[GH-ISSUE #8175] listSessions don't return a list of sessions when sessions is not fresh #19645

Open
opened 2026-04-15 18:55:50 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @DimitarY on GitHub (Feb 26, 2026).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/8175

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

  1. Create a project with
"better-auth": "^1.4.19",
"next": "^16.1.6",
  1. Create acount and try to use listSessions after the freshAge expires.

Current vs. Expected behavior

Current:
listSessions respect freshAge
Expected:
The operation should NOT respect the freshAge per the documentation

What version of Better Auth are you using?

1.4.19

System info

N/A

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

Backend, Documentation

Auth config (if applicable)

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

Additional context

No response

Originally created by @DimitarY on GitHub (Feb 26, 2026). Original GitHub issue: https://github.com/better-auth/better-auth/issues/8175 ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce 1. Create a project with ```json "better-auth": "^1.4.19", "next": "^16.1.6", ``` 2. Create acount and try to use listSessions after the freshAge expires. ### Current vs. Expected behavior Current: listSessions respect freshAge Expected: The operation should NOT respect the freshAge per the [documentation](https://www.better-auth.com/docs/concepts/session-management#list-sessions) ### What version of Better Auth are you using? 1.4.19 ### System info ```bash N/A ``` ### Which area(s) are affected? (Select all that apply) Backend, Documentation ### Auth config (if applicable) ```typescript import { betterAuth } from "better-auth" export const auth = betterAuth({ emailAndPassword: { enabled: true }, }); ``` ### Additional context _No response_
GiteaMirror added the corebug labels 2026-04-15 18:55:50 -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#19645