Add current Stripe plan to user object
Hello, thanks for the awesome Stripe plugin. I was wondering if it is possible to include the Stripe plan which the user is subscribed to on the user object. This would look like this:
User = {
id: string;
[...]
stripeCustomerId?: string | null | undefined;
stripePlan?: string | null | undefined; <---- (this)
}
It would make sense to have this on the server side for route restrictions etc. based on the users current plan. I am using Sveltekit and Drizzle. Anyone has any idea on how to do this?
0 Replies