diff --git a/packages/better-auth/src/types/plugins.ts b/packages/better-auth/src/types/plugins.ts index fc68222f75..35b57521ab 100644 --- a/packages/better-auth/src/types/plugins.ts +++ b/packages/better-auth/src/types/plugins.ts @@ -9,7 +9,7 @@ import type { } from "../types/helper"; import type { AuthContext, BetterAuthOptions } from "."; -import type { Endpoint } from "better-call"; +import type { Endpoint, Middleware } from "better-call"; export type AuthPluginSchema = { [table in string]: { @@ -36,7 +36,7 @@ export type BetterAuthPlugin = { }; middlewares?: { path: string; - middleware: Endpoint; + middleware: Middleware; }[]; onRequest?: ( request: Request,