mirror of
https://github.com/supabase/supabase.git
synced 2026-10-13 21:29:08 +03:00
When user logs out from the user dropdown, they're redirected to the sign-in page via the withAuth redirect, which means that the returnTo param is used -- but if the user _intentionally_ logged out, this might not be the right behavior, i.e., if they want to log in to another account. Instead, if they chose to log out, we shouldn't use the returnTo param. Since the /logout page already implements this behavior, I changed "Log out" button to just route to the /logout page.