How to avoid singleton database when setting up better auth
from what I am seeing in the installation steps, the way to set this up is by making a specific file in an specific folder and exporting specifically an
I don't have a singleton database, so this is impossible for me. my database is setup a main function on startup, not exported.
someone else offered this solution in a different post, but it doesn't work:
I get this error:
nowhere in the docs seem to be explained why better auth needs to be initialised in this very specific way or what the consequences are for not doing so, either way I still like to inject my dependencies, is there any way to achieve this pattern?\
auth variable:I don't have a singleton database, so this is impossible for me. my database is setup a main function on startup, not exported.
someone else offered this solution in a different post, but it doesn't work:
I get this error:
nowhere in the docs seem to be explained why better auth needs to be initialised in this very specific way or what the consequences are for not doing so, either way I still like to inject my dependencies, is there any way to achieve this pattern?\