sbr
05/21/2022, 4:26 AMwithPageAuth() set? That is, I'd like a user who logs in to go to the /home page but /home has a withPageAuth() requirement from supabase-auth-helpers and the redirect doesn't succeedNeedle
05/21/2022, 4:26 AMsbr
05/21/2022, 4:28 AMthorwebdev
05/21/2022, 4:37 AMNeedle
05/21/2022, 4:37 AMsbr
05/21/2022, 4:38 AMsbr
05/21/2022, 4:57 AMnextjs-subscription-payments redirects to the default page on login and not the /account page which is gated by auth. The default page has a useEffect https://github.com/vercel/nextjs-subscription-payments/blob/main/pages/signin.tsx#L58-L62 that waits for the user object to change and then does a router.push to the account page. But I think this is inefficient since the user sees the default page for a few seconds before being redirected to the account pagesbr
05/21/2022, 4:57 AMsbr
05/24/2022, 12:58 AM