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
There's an issue with the lib that makes defaultHeaders to be assigned to request.headers. It happens just after the execution of line 892 (dist code). When request.headers is undefined, then defaultHeaders is going to be assigned to request.headers because of how Object.assign works.
While debugging, we can check that after the execution of line 892:
This will lead to more bugs afterwards, because when logging the request.headers (which is defaultHeaders), the lib changes the 'Authorization' header value to [REDACTED], making this a default header that will override other 'Authorization' headers in subsequent calls.
The text was updated successfully, but these errors were encountered:
There's an issue with the lib that makes
defaultHeaders
to be assigned torequest.headers
. It happens just after the execution of line 892 (dist code). Whenrequest.headers
is undefined, thendefaultHeaders
is going to be assigned torequest.headers
because of howObject.assign
works.While debugging, we can check that after the execution of line 892:
This will lead to more bugs afterwards, because when logging the request.headers (which is defaultHeaders), the lib changes the 'Authorization' header value to
[REDACTED]
, making this a default header that will override other 'Authorization' headers in subsequent calls.The text was updated successfully, but these errors were encountered: