Update session databaseHook uses Partial<Session> but passes Session to updateWithHook
I'm trying to make use of the updateSession databaseHook but am having issues with the types. Its params are a
The issue seems to be here: https://github.com/better-auth/better-auth/blob/main/packages/better-auth/src/db/internal-adapter.ts#L412
Partial<Session> but the expected return type is a full Session so even the following usage causes an error:The issue seems to be here: https://github.com/better-auth/better-auth/blob/main/packages/better-auth/src/db/internal-adapter.ts#L412
GitHub
The most comprehensive authentication framework for TypeScript - better-auth/better-auth