vercel / nextjs-subscription-payments

Clone, deploy, and fully customize a SaaS subscription application with Next.js.
https://subscription-payments.vercel.app/
MIT License
5.79k stars 1.19k forks source link

Supabase Client in Context Provider - Supabase Auth Helpers Client #263

Open czapata08 opened 8 months ago

czapata08 commented 8 months ago

Hi there, your repo has been of tremendous help, sincerely appreciate it. I'm curious if the patterns to handle supabase client with auth helpers and directly. My store is a bit different and I'm currently struggling with it.

I see in your code you have a client in a context provider, but also using the auth helpers and even the auth.admin in some cases. My application also needs to work with all of those use cases, so thought on asking about this patterns in production.