Custom session plugin in monorepo
I have a monorepo with 2 projects
client and server. Both have their own package.json and tsconfijg.json. On the server I have configured better-auth to provide a custom session:
On the client I'm doing this as per the docs
Essentially I'm getting weird type errors such as
since they seem to be imported from different dynamically generated files:
Is there a way to generate only a single .d.ts for generated better-auth types so I don't have these compatbility issues between projects? It seems like currently it generates one for each project that consumes anything from better-auth.0 Replies