I am trying to add a custom claim with firebase after a one time payment with stripe. For subscriptions, the metadata in stripe works to put the custom claim on the auth object, but for one time payments this doesn't seem to work. Does anyone know a way around this?
Thanks!
I tried setting the metadata value on the one-time payment in stripe, but it did not add the custom claim to the auth object.
I ended up just creating a listener for the price collection and changing the custom claims in the cloud function.