© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
user is undefined on pages which arent the login page - Supabase
S
Supabase
•
4y ago
•
2 replies
!CANDY
user is undefined on pages which arent the login page
As the title says
, when I try to get the user object with
supabase.auth.api.getUser(context.req)
supabase.auth.api.getUser(context.req)
it is undefined on any page which isnt the login page
.
Supabase
Join
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
46,176
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
withPageAuth, user is always undefined
S
Supabase / help-and-questions
4y ago
Allow SELECT on column which references another column which references the user
S
Supabase / help-and-questions
4y ago
withPageAuth user undefined for authenticated user
S
Supabase / help-and-questions
4y ago
2FA Login Issue – “Auth session missing!” on Supabase Login Page
S
Supabase / help-and-questions
10mo ago