Backend Auth + Frontend Framework Tutorial

Looking for a good tutorial on how to use Better-Auth in an architecture where it's on a server (i.e. Express) at api.myapp.com

And the frontend (i.e. next.js/react) at www.myapp.com does not have access to the database, it just calls the Better-Auth we setup on the above mentioned server, using a Better-Auth client.

Feels like this should be well documented example in the docs, but I cannot find much about this architecture.

Would like to know the proper config, and common issues and recommendations for this architecture choice.
Was this page helpful?