Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseβ€’13mo agoβ€’
22 replies
zerofactorial

I cannot logout of supabase auth

I'm running nextjs and integrating with supabase auth. I have been able to login and signup users but I cannot logout. I've tried over and over again. I switched over to clerk which is a great product and have had no problem with it. However, I came back to supabase thinking I could actually make this work. I can't.

I've followed supabase docs to the letter and i cannot make logout work. I've searched for example repositories that provide working examples of login and logout. Here's one:
https://github.com/SamuelSackey/nextjs-supabase-example/tree/main

I cloned this local, set my supa anon key and url and sure enough, i see the logged in status of my supabase user but clicking the logout button does nothing???

Maybe I should spin up a brand new supabase instance? Tired of beating my head against the wall. Would love to know if this example repo works for anyone else.
GitHub
GitHub - SamuelSackey/nextjs-supabase-example: Next.js example proj...
Next.js example project for setting up Supabase Google OAuth, middleware, protected routes, and dynamic rendering for beginners - SamuelSackey/nextjs-supabase-example
GitHub - SamuelSackey/nextjs-supabase-example: Next.js example proj...
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Supabase Auth instead of Auth0?
SupabaseSSupabase / help-and-questions
7mo ago
Cannot use 'supabase.auth.api.setAuthCookie'
SupabaseSSupabase / help-and-questions
4y ago
supabase auth
SupabaseSSupabase / help-and-questions
3y ago
Authenticating third-party services using Supabase Auth
SupabaseSSupabase / help-and-questions
7mo ago