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
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