Minimal type representing a Better Auth server instance. This is the interface we expect from the Better Auth library.
Applications pass their configured Better Auth instance to createAuthBetterAuthProvider, which must have an api.getSession method.
Better Auth's session API. The exact shape depends on Better Auth's API version.
Get the current session from a request. Better Auth returns null if not authenticated, or a session object containing user and session data.
Minimal type representing a Better Auth server instance. This is the interface we expect from the Better Auth library.
Applications pass their configured Better Auth instance to createAuthBetterAuthProvider, which must have an api.getSession method.