Question
What strategy to use to notify the backend when an anonymous user becomes a logged in user?
+6
Hi guys,
We have the following scenario :
- User is anonymous in the app, purchase subscription.
- RevenueCat associates subscription with that anonymous user ID.
- Our backend receives webhooks for the INITIAL_PURCHASE associated with the anonymous user id.
- User signs up with our backend. User is attributed a unique user ID.
- Our backend is unaware that the user has a subscription.
- When the mobile apps tries to access some features (let's say GET /documents), they get an unauthorized error.
Currently, the strategy we plan to use is to explicitly refresh a user subscription when the user tries to access the feature (GET /documents) and has no associated subscription. This means the feature is not paywalled in the mobile app, so the mobile app is aware of a subscription but not the server.
Do you have any other strategies to deal with this?
This post has been closed for comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.