You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been debugging an issue we've been having using nextauth routes. The api routes (/api/auth/[...nextauth]) served by the nextauth library were all responding with an HTTP error 500. I've narrowed down the issue to nextauth setting two cookies, which in turn sets the header set-cookie to contain two values in the header object returned to API Gateway (see source).
AWS API Gateway v1 requires headers with multiple values to be set in multiValueHeaders key and rejects multi value headers that are set in headers.
I would write a patch myself but I am struggling to test the changes to the respective bridge function.
Please let me know if I have missed something.
The text was updated successfully, but these errors were encountered:
Hi,
I've been debugging an issue we've been having using nextauth routes. The api routes (
/api/auth/[...nextauth]
) served by the nextauth library were all responding with an HTTP error 500. I've narrowed down the issue to nextauth setting two cookies, which in turn sets the headerset-cookie
to contain two values in the header object returned to API Gateway (see source).AWS API Gateway v1 requires headers with multiple values to be set in
multiValueHeaders
key and rejects multi value headers that are set inheaders
.I would write a patch myself but I am struggling to test the changes to the respective bridge function.
Please let me know if I have missed something.
The text was updated successfully, but these errors were encountered: