Skip to content

Commit

Permalink
fix: use error query param if set (nextauthjs#3141)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnphpexpert committed Nov 7, 2021
1 parent cb1ec68 commit 1179bbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/next/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async function NextAuthNextHandler(
method: req.method ?? "GET",
action: req.query.nextauth[0] as NextAuthAction,
providerId: req.query.nextauth[1],
error: req.query.nextauth[1],
error: (req.query.error as string | undefined) ?? req.query.nextauth[1],
},
options,
})
Expand Down

0 comments on commit 1179bbc

Please sign in to comment.