chore: change plugin interface middleware type (#2195)

This commit is contained in:
KinfeMichael Tariku
2025-04-12 11:37:10 +03:00
committed by GitHub
parent f9b9672e78
commit 911bb5f68b

View File

@@ -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,