Unable to get access to authClient.stripe.subscription

import { emailOTPClient } from "better-auth/client/plugins";
import { createAuthClient } from "better-auth/react";
import { stripeClient } from "@better-auth/stripe/client"

export const authClient = createAuthClient({
  /** the base url of the server (optional if you're using the same domain) */
  baseURL: "http://localhost:3000",
  plugins: [
    emailOTPClient(),
    stripeClient({
      subscription: true,
    }),
  ],
});

export const { signIn, signUp, useSession, signOut, stripe } = authClient;


When I do authClient.stripe. it only shows webhook as option?

Also, I dont know why but when user pays for sub, the webhook is not updating the data in db.
Was this page helpful?