Hi everyone, I have an application with a separate backend using nodejs and a nextjs frontend.
Currently I am using passportjs (JWT) for auth in the backend API, then from the frontend consumes the token and stores it in a cookie.
I am interested in better-auth & plan to migrate using better-auth.
How do I implement better-auth in a separate application such as (separate backend, frontend)?
For example, I want to set my better-auth in the backend API, then the frontend consumes the session or something else?
Does anyone have an example of the implementation?
Thanks