jatin
jatin
BABetter Auth
Created by jatin on 3/20/2025 in #help
Issue with error redirection in case of a custom domain setup
Would you suggest creating multiple auth instances hosted on one server? Is that an acceptable solution? I have also seen other people pointing out the need to make baseURL a dynamic entity (via a function call, just like origins?).
11 replies
BABetter Auth
Created by jatin on 3/20/2025 in #help
Issue with error redirection in case of a custom domain setup
Just to add more context, I have a more peculiar setup: client hosted on: custom.client.com api calls routed via: api.mysaas.com (same domain used to call the API across clients; moved to api.mysaas.com because the mysaas.com domain is hosted on Vercel and I wanted the api calls to bypass Vercel altogether as they have some weird limitations at their end) When I leave the baseURL empty, it ends up picking up api.mysaas.com instead of custom.client.com (which seems fair) but not useful from a custom domain POV.
11 replies
BABetter Auth
Created by jatin on 3/20/2025 in #help
Issue with error redirection in case of a custom domain setup
Is there a way to customize the base url behaviour on better-auth? I presume I can do it by forking the library but it somewhat defeats the purpose of using the library.
11 replies
BABetter Auth
Created by jatin on 3/20/2025 in #help
Issue with error redirection in case of a custom domain setup
Yes, I did try this. It did not work as expected.
11 replies
BABetter Auth
Created by jatin on 3/20/2025 in #help
Issue with error redirection in case of a custom domain setup
Bumping this up in case this got missed out.
11 replies
BABetter Auth
Created by jatin on 3/6/2025 in #help
Multi-tenant SaaS tool with multiple apps as tenants
Thank you once again. Appreciate the prompt support @bekacru.
7 replies
BABetter Auth
Created by jatin on 3/6/2025 in #help
Multi-tenant SaaS tool with multiple apps as tenants
Thank you for the response @bekacru. Appreciate it. Another quick question. For my users using the app on multiple domains, will I have to add all of them to trustedOrigins for CSRF check to proceed? If that's the case, then there could 100s if not 1000s of customer domains that'll need to be dynamically added to trustedOrigins.
7 replies
BABetter Auth
Created by fres on 2/11/2025 in #help
How to handle niche case with multi-tenant
Hello. Were you able to figure this out?
3 replies