firebase-subscription-payments
firebase-subscription-payments copied to clipboard
Custom Claim not updated if user subscribes again after subscription expired
Bug report
Describe the bug
If a user subscribes their custom claim is set to the correct value, when the subscription expires (or it's canceled) the claim is updated again correctly. But if the user subscribes again, the custom claim doesn't get updated.
The same happens if the user switches from one subscription model to another.
To Reproduce
See above.
Expected behavior
Custom claim should always match the correct status.
Screenshots



For some reason I don't see the customer.subscription.updated webhook event on Dec 30th, I only see a different one generated form an automatic monthly renewal.
System information
N/A
Additional context
Add any other context about the problem here.