Skip to content

Commit 0d7d8da

Browse files
fix: use error query param if set (#3141)
1 parent f998bf2 commit 0d7d8da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/next/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async function NextAuthNextHandler(
4444
method: req.method ?? "GET",
4545
action: req.query.nextauth[0] as NextAuthAction,
4646
providerId: req.query.nextauth[1],
47-
error: req.query.nextauth[1],
47+
error: (req.query.error as string | undefined) ?? req.query.nextauth[1],
4848
},
4949
options,
5050
})

0 commit comments

Comments
 (0)