1. 이곳에서 database 생성하고 키 생성해서 .env.local 구축하기

https://supabase.com/docs/guides/auth/quickstarts/nextjs

 

Use Supabase Auth with Next.js | Supabase Docs

Learn how to configure Supabase Auth for the Next.js App Router.

supabase.com

2. 이곳에서 필요한 패키지 깔고 필요한 구도 갖추기

https://supabase.com/docs/guides/auth/server-side/nextjs

 

Setting up Server-Side Auth for Next.js | Supabase Docs

Be careful when protecting pages. The server gets the user session from the cookies, which can be spoofed by anyone. Always use supabase.auth.getUser() to protect pages and user data. Never trust supabase.auth.getSession() inside server code such as middle

supabase.com

 

 

+ Recent posts