How to get a function callback for baseurl or crossSubDomainCookies.domain
I have Better Auth backend for multiple websites: -1) appA.example1.com and appB.example1.com using the same authentication. -2) appA.example2.com and appB.example2.com using the same authentication. I want to put the cookie for 1) on domain example1.com, and for 2) on domain example2.com
How to have a function callback for baseurl or crossSubDomainCookies.domain so that I can put the cookie domain to the right value>
Alternatively, a regex for crossSubDomainCookies.domain consisting of suppressing the subdomain.
An app could be running on ten different URLs at the same time. e.g. an app deployed on Vercel might have a couple of custom domain names, deployment id sub domain, and environment sub domain. It&#...