mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
fix: set correct response status if X-Auth-Return-Redirect (#8779)
Copy from https://github.com/nextauthjs/next-auth/pull/8775
This commit is contained in:
@@ -149,6 +149,7 @@ export async function Auth(
|
||||
response.headers.delete("Location")
|
||||
response.headers.set("Content-Type", "application/json")
|
||||
return new Response(JSON.stringify({ url: redirect }), {
|
||||
status: internalResponse.status,
|
||||
headers: response.headers,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user