nextjs-subscription-payments
nextjs-subscription-payments copied to clipboard
Address the 406 error caused by getUserDetails in the /utils/useUser.tsx file
Recently I noticed the following when you are logged in and do not have a subscription connected to your account. This is happening on my site and I also noticed it on the dev site. I am pretty sure it's being triggered by the /utils/useUser.tsx file by the getUserDetails function.

Hey @brentrobbins , this one is expected as it uses the single() method: https://supabase.com/docs/reference/javascript/single
This could probably be updated to use https://supabase.com/docs/reference/javascript/maybesingle. Wanna open a PR?