Skip to content
This repository was archived by the owner on Jun 18, 2026. It is now read-only.

Fix: Avoid creating duplicate Stripe customers#648

Open
bensontrent wants to merge 2 commits into
invertase:nextfrom
bensontrent:next
Open

Fix: Avoid creating duplicate Stripe customers#648
bensontrent wants to merge 2 commits into
invertase:nextfrom
bensontrent:next

Conversation

@bensontrent

Copy link
Copy Markdown

For a Stripe company with existing customers, duplicate Stripe customers are created when registering new Firebase Auth credientials. This fix searches the Stripe customers by email. If an existing customer is found we update that customer with the firebaseUID metadata. It also updates the existing customer's phone number if one is supplied.

@CLAassistant

CLAassistant commented Dec 9, 2024

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

5 participants