ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseโ€ข4y agoโ€ข
1 reply
michel

getserverSideProps withpageauth user undefined in nextjs subscription example and locally

Hello!
As the title says I am currently setting up authentication for my app and I am using the NextJS Vercel Supabase Subscription example as a reference (https://github.com/vercel/nextjs-subscription-payments). I set up SignUp and SignIn and now meant to secure the Account page, but when I do that the user object remains undefined. I tried a bunch of things, but nothing really worked. I noticed that the example page is also not working, as evident here: https://subscription-payments.vercel.app/account
The postgres response is a 406, which is happening, cause the user object is empty.

UPDATE:
This works fine right after I sign up as a new user, but fails thereafter
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

withPageAuth user undefined for authenticated user
SupabaseSSupabase / help-and-questions
4y ago
withPageAuth, user is always undefined
SupabaseSSupabase / help-and-questions
4y ago
NextJs SSR `withPageAuth` from `supabaseauth-helpers-nextjs` doesn't pick up the authenticated user
SupabaseSSupabase / help-and-questions
4y ago
NextJS getServerSideProps capture Google login callback
SupabaseSSupabase / help-and-questions
4y ago