diff --git a/packages/stripe/src/client.ts b/packages/stripe/src/client.ts index ae8f37281d..4b29aebf1d 100644 --- a/packages/stripe/src/client.ts +++ b/packages/stripe/src/client.ts @@ -1,4 +1,4 @@ -import type { BetterAuthClientPlugin } from "better-auth"; +import type { BetterAuthClientPlugin } from "@better-auth/core"; import type { stripe } from "./index"; export const stripeClient = < diff --git a/packages/stripe/src/hooks.ts b/packages/stripe/src/hooks.ts index 5cf5049ecd..c9860279e8 100644 --- a/packages/stripe/src/hooks.ts +++ b/packages/stripe/src/hooks.ts @@ -1,4 +1,5 @@ -import { type GenericEndpointContext, logger } from "better-auth"; +import type { GenericEndpointContext } from "@better-auth/core"; +import { logger } from "better-auth"; import type Stripe from "stripe"; import type { InputSubscription, StripeOptions, Subscription } from "./types"; import { getPlanByPriceInfo } from "./utils"; diff --git a/packages/stripe/src/index.ts b/packages/stripe/src/index.ts index 14c1ec44ec..9f8d384460 100644 --- a/packages/stripe/src/index.ts +++ b/packages/stripe/src/index.ts @@ -1,8 +1,9 @@ +import type { BetterAuthPlugin } from "@better-auth/core"; import { createAuthEndpoint, createAuthMiddleware, } from "@better-auth/core/api"; -import { type BetterAuthPlugin, logger } from "better-auth"; +import { logger } from "better-auth"; import { APIError, getSessionFromCtx, diff --git a/packages/stripe/src/types.ts b/packages/stripe/src/types.ts index 0415a4f37e..f2c89320d4 100644 --- a/packages/stripe/src/types.ts +++ b/packages/stripe/src/types.ts @@ -1,9 +1,6 @@ -import type { - GenericEndpointContext, - InferOptionSchema, - Session, - User, -} from "better-auth"; +import type { GenericEndpointContext } from "@better-auth/core"; +import type { Session, User } from "@better-auth/core/db"; +import type { InferOptionSchema } from "better-auth/types"; import type Stripe from "stripe"; import type { subscriptions, user } from "./schema"; diff --git a/packages/stripe/src/utils.ts b/packages/stripe/src/utils.ts index 11f5cd59d2..81abb3f321 100644 --- a/packages/stripe/src/utils.ts +++ b/packages/stripe/src/utils.ts @@ -1,4 +1,4 @@ -import type { GenericEndpointContext } from "better-auth"; +import type { GenericEndpointContext } from "@better-auth/core"; import type Stripe from "stripe"; import type { StripeOptions } from "./types";