vercel / nextjs-subscription-payments

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

Stripe user not deleted on auth user delete #352

Open bennik88 opened 1 week ago

bennik88 commented 1 week ago

Problem If I understand the code base correctly it's missing the case when a user is deleted in the database to also delete the stripe record that belongs to it. Or am I missing something?

Possible Solution In a past App, I did this with a webhook from Supabase that called a Next js API route to delete the Stripe user with the stripe api.