Next.js Discord

Discord Forum

Handle SignOut correctly for the layout Nextjs + Supabase

Unanswered
West African Lion posted this in #help-forum
Open in Discord
West African LionOP
Hello everyone,

I hope your are well !

I'm having a problem logging out of my session.

I'm coding an application in nextjs + supabase. For my architecture, I have
- a login page (/app/login/page.tsx)
- the main page (/app/page.tsx)
- the common layout with a navigation bar and a header (/app/layout.tsx)

When I try to log out of my application, I would like the login page to be displayed except that the layout remains the same (my navigation bar and header remain) as does the login form that is displayed. How can I display the login page in its entirety? I don't think I'm the only one in this situation...😢

Would you like screenshots?

0 Replies