Query tables created by better auth with kysely
Hey, I just set up better-auth with kysely and I noticed that I cannot query the database users etc manually as my typescript thinks my db instance does not have the correct types and thinks these tables do not exist. An example of what I mean is attached as an image below, How do I get my kysely instance to allow me to query all the tables created by better-auth

2 Replies
this isn't directly related to better auth. make sure you have the right types passed to your kysley instance
Well, there isn't really any way to query the better-auth schemas as far as I know of, so I would say that it is in fact related to better auth. I just created the types manually for now, but that isn't really optimal imo