authClient.getSession wrong return type
when using authClient with
the return type is:
but it should be:
Solution:Jump to solution
GitHub
fix(get-session): missing
null
type on /get-session by ping-maxwe...When there isn't an active session, null is returned on the /get-session endpoint. This was missing in types.
1 Reply
Solution
Hey this is fixed recently.
https://github.com/better-auth/better-auth/pull/3026
GitHub
fix(get-session): missing
null
type on /get-session by ping-maxwe...When there isn't an active session, null is returned on the /get-session endpoint. This was missing in types.