diff --git a/packages/better-auth/src/api/call.test.ts b/packages/better-auth/src/api/call.test.ts index 9225688eb5..226325b9e7 100644 --- a/packages/better-auth/src/api/call.test.ts +++ b/packages/better-auth/src/api/call.test.ts @@ -10,7 +10,7 @@ import { init } from "../init"; import type { BetterAuthOptions, BetterAuthPlugin } from "../types"; import { z } from "zod"; import { createAuthClient } from "../client"; -import { bearer } from "src/plugins"; +import { bearer } from "../plugins/bearer"; describe("call", async () => { const q = z.optional( diff --git a/packages/better-auth/src/api/middlewares/origin-check.ts b/packages/better-auth/src/api/middlewares/origin-check.ts index c3e33f9bcc..2d30f2edb2 100644 --- a/packages/better-auth/src/api/middlewares/origin-check.ts +++ b/packages/better-auth/src/api/middlewares/origin-check.ts @@ -2,7 +2,7 @@ import { APIError } from "better-call"; import { createAuthMiddleware } from "../call"; import { wildcardMatch } from "../../utils/wildcard"; import { getHost, getOrigin, getProtocol } from "../../utils/url"; -import type { GenericEndpointContext } from "src/types"; +import type { GenericEndpointContext } from "../../types"; /** * A middleware to validate callbackURL and origin against diff --git a/packages/better-auth/src/api/routes/account.test.ts b/packages/better-auth/src/api/routes/account.test.ts index 146049ad0b..147798a11f 100644 --- a/packages/better-auth/src/api/routes/account.test.ts +++ b/packages/better-auth/src/api/routes/account.test.ts @@ -5,7 +5,7 @@ import type { GoogleProfile } from "../../social-providers"; import { DEFAULT_SECRET } from "../../utils/constants"; import { getOAuth2Tokens } from "../../oauth2"; import { signJWT } from "../../crypto/jwt"; -import { BASE_ERROR_CODES } from "src/error/codes"; +import { BASE_ERROR_CODES } from "../../error/codes"; let email = ""; vi.mock("../../oauth2", async (importOriginal) => { diff --git a/packages/better-auth/src/db/schema.ts b/packages/better-auth/src/db/schema.ts index 4c1fbc1320..78392c7bc2 100644 --- a/packages/better-auth/src/db/schema.ts +++ b/packages/better-auth/src/db/schema.ts @@ -3,7 +3,7 @@ import type { FieldAttribute } from "."; import type { AuthPluginSchema } from "../types/plugins"; import type { BetterAuthOptions } from "../types/options"; import { APIError } from "better-call"; -import type { Account, Session, User } from "src/types"; +import type { Account, Session, User } from "../types"; export const accountSchema = z.object({ id: z.string(),