Watch: Keep logged-out visitors off my private pages | Vovy
Watch Vovy do it on a Mac: "Make my dashboard pages only work when you're logged in". Vovy finds every private page in your app, adds a login check that redirects visitors, and tests each one while logged out.
"Make my dashboard pages only work when you're logged in"
Vovy finds every private page in your app, adds a login check that redirects visitors, and tests each one while logged out.
What happens in the video
- List every route: Vovy reads your router in Cursor and shows a table of pages, marking which should be public and which private. You adjust the list.
- Add a login guard: It wraps private routes in a check that reads the Supabase session and sends logged-out visitors to /login, remembering where they were going.
- Guard the server side too: For Next.js apps it adds middleware using @supabase/ssr so private pages are blocked before they render, not just hidden.
- Check the data is locked: Vovy checks your tables have Row Level Security on, since a page guard alone doesn't stop someone reading data with your public key.
- Test every page logged out: It opens each private URL in a private Chrome window and shows a pass or fail table.
Read the step-by-step guideLoading...