From 911bb5f68ba41f79fb80ae55536de2536faed183 Mon Sep 17 00:00:00 2001 From: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com> Date: Sat, 12 Apr 2025 11:37:10 +0300 Subject: [PATCH] chore: change plugin interface middleware type (#2195) --- packages/better-auth/src/types/plugins.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,