Commit Graph
3 Commits
Author SHA1 Message Date
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
patelmilanun 376a2f0d19 fix : correct api path in auth/nextjs example #13493
Because we are using next js 13 in this example and the redme contain code from older version of next js
2023-04-07 01:17:11 +05:30
Jon Meyers cfe4d635d3 add nextjs auth example 2023-03-15 20:27:17 +11:00