Centralized auth
Is there any way to have multiple (NextJS + Hono) apps, and a centralized auth one? So every app redirects to auth.example.com and gets the auth form from there and authenticates in there? Thanks in advance
Solution:Jump to solution
so you will have one instance on server either of the server framework and client frameowrk to create a client instance separetly so that they can make a request to server with through better auth client abstraction
6 Replies
are we talking about decentrilizing the auth instance ?
yes, like, the other nextjs instances call the auth server which have the auth form an allat, and then returns to the nextJS instance but logged in
you still can have one backend with server instance and still all the client apps like from nextjs , expo and other cliennt can connect that server. you only need to create client instance for each of the client apps
okay, so it will be just working with ClientInstance on the nextJS instances and not working with the ServerInstance, did I understand correctly?
Solution
so you will have one instance on server either of the server framework and client frameowrk to create a client instance separetly so that they can make a request to server with through better auth client abstraction
Thank u, I had some CORS problems, but all fixed and working now, I appreciate the help