Skip to content

Commit 4daa63d

Browse files
authoredJun 9, 2022
feat(callback): return always status code 401 on error (#4601)
1 parent 81afeef commit 4daa63d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎packages/next-auth/src/core/routes/callback.ts

+1
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ export default async function callback(params: {
349349
}
350350
} catch (error) {
351351
return {
352+
status: 401,
352353
redirect: `${url}/error?error=${encodeURIComponent(
353354
(error as Error).message
354355
)}`,

0 commit comments

Comments
 (0)
Please sign in to comment.