Skip to content

Commit

Permalink
Fix middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
HaNdTriX committed Nov 2, 2022
1 parent a7940f2 commit c4087fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next-auth/src/next/middleware.ts
Expand Up @@ -184,7 +184,7 @@ export type WithAuthArgs =
* [Documentation](https://next-auth.js.org/configuration/nextjs#middleware)
*/
export function withAuth(...args: WithAuthArgs) {
if (!args.length || args[0] instanceof NextRequest) {
if (!args.length || args[0] instanceof Request) {
// @ts-expect-error
return handleMiddleware(...args)
}
Expand Down

0 comments on commit c4087fc

Please sign in to comment.