Skip to content

Commit 282f7ab

Browse files
committed
fix(ts): fix Middleware internal type
1 parent 4f56e41 commit 282f7ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next-auth/src/next/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export function withAuth(...args: WithAuthArgs) {
196196
})
197197
}
198198

199-
const options = args[0]
199+
const options = args[0] as NextAuthMiddlewareOptions
200200
return async (...args: Parameters<NextMiddleware>) =>
201201
await handleMiddleware(args[0], options)
202202
}

0 commit comments

Comments
 (0)