Next.js Discord

Discord Forum

multi zones auth

Unanswered
Valentine ant posted this in #help-forum
Open in Discord
Avatar
Valentine antOP
Hello, I am implementing an application with multi zones and I would like to have all the authentication in one project and the apps in others

I managed to validate the session successfully from the apps

The problem appears when the session is invalid in one of the apps and I have to redirect to the sing-in of the auth project with throw redirect("sign-in"); I get ChunkLoadError: Loading chunk app/(auth)/sign-in/page failed.

I couldn't find an adequate solution and the documentation only specifies the use of links for navigation between areas.

0 Replies