Files
supabase/examples/auth
Khalifa Fumo 1b97e659e0 Update middleware.ts to check if user is logged in
I was experiencing an issue where I could not protect my routes within my Next.js 13 (app) app. I searched for a fix everywhere but the app router being a new development, I did not find any help, even within the supabase docs, so I set out to trying a fix for myself and I found this to work perfectly. You can now protect your routes such that only logged in users can access some pages. You can also configure the config such that the middleware is set to run (or not to run) on selected pages.
2023-05-14 18:28:20 +03:00
..
2023-05-08 16:53:22 +08:00