mirror of
https://github.com/better-auth/better-auth.git
synced 2026-06-05 05:46:50 -05:00
refactor: import types from core
This commit is contained in:
@@ -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 = <
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user