When RevenueCat update firestore collection to indicate that subscription is cancelled claims are not updated.
Scenario to proof :
- Cancel your subscription and create a listener on the collection containing the subscription data.
- Once subscription is updated by RevenueCat at ‘expiresDate’ your app will be notified.
- Once notified call FirebaseAuth.instance.currentUser!.getIdTokenResult(true).
- As you can see claims are not updated
Because of that, after subscription i can’t read some collections protected by firestore rules using claims.