© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
3 replies
BPM

Cannot signin/signup 401 unauthorized

I managed to setup a selfhosted docker for supabase, but it is not working 100% as it should. First, I keep getting studio being unhealthy but I can access it just fine at "IP_ADDRESS:3000" from my client.

However, my main issue is that when I tried the nextjs subscription example using supabase it keeps giving me 401 error (unauthorized). I checked the request and it has the correct ANON_KEY as the apiKey header and the Authorization Bearer header.

When I try to create a new account, I see on my console that it sent:
POST http://MY_SERVER_IP:8000/auth/v1/signup?redirect_to={{CALLBACK_URL}} 401 (Unauthorized)
POST http://MY_SERVER_IP:8000/auth/v1/signup?redirect_to={{CALLBACK_URL}} 401 (Unauthorized)


And a similar error when trying to login to an account I made through studio dashboard.
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

cannot signin after signup
SupabaseSSupabase / help-and-questions
13mo ago
Realtime error 401 unauthorized
SupabaseSSupabase / help-and-questions
5mo ago
Handle signUp or signIn error Codes
SupabaseSSupabase / help-and-questions
4y ago
realtime empty payload.new - error 401: Unauthorized
SupabaseSSupabase / help-and-questions
3y ago