firebase-subscription-payments icon indicating copy to clipboard operation
firebase-subscription-payments copied to clipboard

Custom Claim not updated if user subscribes again after subscription expired

Open FezVrasta opened this issue 3 years ago • 0 comments

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

CleanShot 2022-01-03 at 8 13 59@2x

CleanShot 2022-01-03 at 8 15 20@2x

CleanShot 2022-01-03 at 8 19 07@2x

CleanShot 2022-01-03 at 8 26 16@2x

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.

CleanShot 2022-01-03 at 8 32 10@2x

System information

N/A

Additional context

Add any other context about the problem here.

FezVrasta avatar Jan 03 '22 19:01 FezVrasta