Search
Setup for Free
S
Supabase
•
4y ago
!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.
44,404
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
supabase.auth.api.getUser(context.req)
supabase.auth.api.getUser(context.req)
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
How to create a new entry on the user_logs table on each user login?
S
Supabase / help-and-questions
3y ago