Webhook User ID Collision & Per-Product Customer Creation Missing #6223
Unanswered
zaidmukaddam
asked this question in
Q&A
Replies: 2 comments 2 replies
-
I'm not sure I follow you entirely, but I guess the two problems are tightly related, and actually by design.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I have two different products in the same organization! Didn't know about unique customer id will look into that. this is how i have used the webhook: https://github.com/zaidmukaddam/scira/blob/main/lib/auth.ts#L99 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
There are two main issues:
Webhook Collision:
When a user signs up on one platform (e.g., Platform A), the webhook uses that external user ID. If the same user later signs up via another platform (e.g., Platform B), the webhook still refers to the original external user ID from Platform A, leading to data collisions.
Customer Creation on Signup:
If a user already exists in the system from one product, signing up for a different product doesn’t trigger customer creation again. But in our use case, users should be treated as separate customers per product, even if their core user account already exists.
Current Behavior
Expected Behavior
Beta Was this translation helpful? Give feedback.
All reactions