Stripe api.auth. Functions not exists

Hey, When I try to use the Stripe plugin I get a TypeScript error because auth.api.listActiveSubscriptions does not exist on the type. All Stripe Function doesnt exists. I think in the documentation is the right way: const subscriptions = await auth.api.listActiveSubscriptions({ query: { referenceId: "123" }, headers: await headers(), }); but this doesnt work. Can anyone help? I’m using the latest version (1.3.7).
1 Reply
George
George3mo ago
I had to add subscription plans to my auth config for it to work.

Did you find this page helpful?