Multiple apps sharing the same database using Better Auth

im using nextjs in a monorepo like this

apps:
example.com (account portal like billing etc)
product.example.com (spereate nextjs app)

what i do in nextauth is just share the same db and create new sessions for each user, is this do able in better auth

reason for this if you are wondering is because each product is very complex not always realted with each other, so would be lots to have on one app

question: is it possible to make it auto log in accross all subdomains if not them having to login again is fine for my use case just wondering and how would the config work just each nextjs app baseurl be set to that subdomain
Was this page helpful?