// within betterAuth.plugins.stripe.subscription
{
onSubscriptionUpdate: async ({ event, subscription }) => {
// Observe how 'subscription' logs the old/previous subscription data, not the updated data:
console.log(subscription);
}
}
// within betterAuth.plugins.stripe.subscription
{
onSubscriptionUpdate: async ({ event, subscription }) => {
// Observe how 'subscription' logs the old/previous subscription data, not the updated data:
console.log(subscription);
}
}