© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
26 replies
LukasV

Authentication does not work in production

I deployed my next.js project to vercel and for some reason authentication is not working at all.

1. Google O auth let's me sign in, but does nothing after I sign in, where it should be redirecting me to another page.
2. When using email OTP login, I get this error:
Header 'apikey' has invalid value:
Header 'apikey' has invalid value:


Everything works in development, but nothing works in production, is there any additional setup required?

Please, I need the help
IMG_0107.jpeg
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

Authentication persistence - how does it work?
SupabaseSSupabase / help-and-questions
2mo ago
Does server-side authentication work in tendom with client-side?
SupabaseSSupabase / help-and-questions
4y ago
exchangeCodeForSession doesn´t work in production
SupabaseSSupabase / help-and-questions
14mo ago
order by does not work in a function
SupabaseSSupabase / help-and-questions
4y ago