auth.api.getSession has incorrect return type since v1.3.13

In https://github.com/better-auth/better-auth/pull/3983 the return type was adjusted to include options and path which are always undefined during runtime. Those excess properties actually cause issues in TanStack Start due to TypeScript errors caused by non-serialisable types. I have a feeling those two properties have erroneously ended up in the PR and are completely unintended there and should be removed. Would appreciate if somebody and confirm this. Happy to open a PR myself if it turns out to require a fix.
3 Replies
Near
NearOP7d ago
Thanks for the fix. What is the current release cadence so I can estimate when this will be published? It's not urgent, just curious to know.
bekacru
bekacru7d ago
will be released tomorrow

Did you find this page helpful?