© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•6mo ago
ryuichi(zakzackr)

Roast my demo app with Next.js and @supabase/ssr using httpOnly cookies

Hey everyone! I built a demo app showcasing server-side authentication with Supabase using httpOnly cookies and Magic Link auth. I'd love to get some fresh eyes on it to spot any potential issues or improvements.

What it includes:
- Next.js 15 (App Router)
- Magic Link passwordless authentication
- Server-side session management with secure httpOnly cookies
- Protected routes via middleware

Repo: https://github.com/zakzackr/supabase-ssr-httponly-demo

I know there are going to be trade-offs with this approach (no onAuthStateChange, can't use getUser() on client-side, etc.), so I'd love to get some other eyes on it to see if there are any flaws or improvements I'm missing. Any feedback would be greatly appreciated! 🙏
GitHub
GitHub - zakzackr/supabase-ssr-httponly-demo: supabase/ssr + Next.j...
supabase/ssr + Next.js authentication demo with HttpOnly cookies - zakzackr/supabase-ssr-httponly-demo
GitHub - zakzackr/supabase-ssr-httponly-demo: supabase/ssr + Next.j...
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Supabase SSR + Middleware + HttpOnly Cookies?
SupabaseSSupabase / help-and-questions
5mo ago
httponly cookies
SupabaseSSupabase / help-and-questions
4y ago
Rate limiting with Supabase + Next.js SSR
SupabaseSSupabase / help-and-questions
2mo ago
Next.js and Supabase v2
SupabaseSSupabase / help-and-questions
4y ago