File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -84,8 +84,12 @@ import type {
84
84
AppRouteHandlerFnContext ,
85
85
} from "./lib/types.js"
86
86
// @ts -expect-error Next.js does not yet correctly use the `package.json#exports` field
87
- import type { NextRequest } from "next/server"
88
- import type { NextAuthConfig , NextAuthRequest } from "./lib/index.js"
87
+ import type { NextRequest , NextMiddleware } from "next/server"
88
+ import type {
89
+ NextAuthConfig ,
90
+ NextAuthRequest ,
91
+ NextAuthMiddleware ,
92
+ } from "./lib/index.js"
89
93
export { AuthError , CredentialsSignin } from "@auth/core/errors"
90
94
91
95
export { customFetch }
@@ -245,7 +249,8 @@ export interface NextAuthResult {
245
249
ctx : AppRouteHandlerFnContext
246
250
) => ReturnType < AppRouteHandlerFn > ,
247
251
]
248
- ) => AppRouteHandlerFn )
252
+ ) => AppRouteHandlerFn ) &
253
+ ( ( ...args : [ NextAuthMiddleware ] ) => NextMiddleware )
249
254
/**
250
255
* Sign in with a provider. If no provider is specified, the user will be redirected to the sign in page.
251
256
*
You can’t perform that action at this time.
0 commit comments