geotiff.js is a small library to parse TIFF files for visualization or analysis. It is written in pure JavaScript, and is usable in both the browser and node.js applications.
In FetchClient::request method, credentials is used from that method's arguments. The credentials parameter passed to constructor is ignored in method's body, see /src/source/client/fetch.js line 41
Callers of FetchClient::request seems never supply that parameter in method's arguments. It seems the only caller lives in src/source/remote.js
I suggest and ask somebody responsible to fix the method with the following code:
FetchClient constructor gets
credentials
parameter, see /src/source/client/fetch.js line 30In
FetchClient::request
method,credentials
is used from that method's arguments. Thecredentials
parameter passed to constructor is ignored in method's body, see /src/source/client/fetch.js line 41Callers of FetchClient::request seems never supply that parameter in method's arguments. It seems the only caller lives in src/source/remote.js
I suggest and ask somebody responsible to fix the method with the following code: