Commit Graph
3 Commits
Author SHA1 Message Date
Jon Meyers b290c64b6b update official next.js auth handlers example 2023-05-25 10:16:30 +10:00
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
Jon Meyers cfe4d635d3 add nextjs auth example 2023-03-15 20:27:17 +11:00