mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-27 17:36:42 -05:00
chore: change plugin interface middleware type (#2195)
This commit is contained in:
committed by
GitHub
parent
f9b9672e78
commit
911bb5f68b
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user