Closed nate-oo closed 8 months ago
@nate-oo Great questions Nate, did you get the answers to these?
@scottklein7 I did not.
I figured I would just Close it was sitting as Open for such a long time and make it one less Open Issue/Question in the repo. I know the contributors are busy building awesome stuff at Supabase, Stripe, and Vercel/Nextjs.
I also haven't looked into this deeply on my own yet. But here are my initial thoughts.
Friendly Disclaimer: This could be wrong as I haven't spent the time yet and am not at that stage of my app.
updateEmail
Server Action will only update the email address on the Supabase managed table auth.user
. email
on the user's related record on the Stripe Customer object. In my opinion, I think it probably should so those stay in sync
with each other. duplicate
) user in Supabase. I don't know if there really is a way you can prevent that and I don't know how to merge
those users in Supabase if that happens. My initial thoughts are that I probably will just add some additional text to my sign in form below the sign in button that says something to the user about this.auth.users
email value and the email value of their related Stripe Customer record. I believe the Stripe Customer record's email is what will show as greyed out in checkout. So at most I think this would create confusion for the user. Say for instance, on the Account page of your app they update their email. The Server Action updates it. They now have a different email than what is on their related Stripe Customer record because the code doesn't update the user's related Stripe Customer record's email value. NOW, they then make it to checkout and the email greyed out in Checkout show's their old
email because their related Stripe Customer record's email value was never updated. This may create some confusion for the user.Again could be missing things or wrong on some things here. Hopefully this is some food for further thought.
Hi guys!
First thing is this is an awesome repo! Great work everyone!
Disclaimer: Forgive me if submitting an issue is not the right place for a question.
I'm new to programming and am going through the code and working on understanding all the logic and actions that are taking place.
These may not be issues and I haven't actually cloned this repo and tested things yet. Just trying to understand it all.
My questions
The Code: Found under app/account/page.tsx
Thanks! Nate