`ctx.context.db` not available?
Why is
ctx.context.db
coming back as non existent? I'm using the drizzle adapter but I would like to use the kysley stuff inside the plugin so it doesn't end up only supporting drizzle. However this is saying Solution:Jump to solution
Appears it was removed in this PR https://github.com/better-auth/better-auth/pull/536 @bekacru Not sure if this was intended, if need be I'll make a PR to change the docs so
db
doesn't appear there anymore.2 Replies
Actually I see it doesn't exist here https://github.com/better-auth/better-auth/blob/main/packages/better-auth/src/init.ts was there just a mistake in not removing it from the docs?
GitHub
better-auth/packages/better-auth/src/init.ts at main · better-auth...
The most comprehensive authentication framework for TypeScript - better-auth/better-auth
Solution
Appears it was removed in this PR https://github.com/better-auth/better-auth/pull/536 @bekacru Not sure if this was intended, if need be I'll make a PR to change the docs so
db
doesn't appear there anymore.