Closed lamontacrook closed 1 year ago
The expected behavior of the library should be that it supports basic auth and encode the credentials without the intervention of workarounds in the project.
Library fails because the line in the library cannot find Buffer().
Buffer()
authToken = Buffer.from(`${auth[0]}:${auth[1]}`, 'utf8').toString('base64')
Reproduce by:
Running create-react-app and install this library. Then use the library with basic auth. The project will fail to run because of this error.
The expected behavior of the library should be that it supports basic auth and encode the credentials without the intervention of workarounds in the project.
Library fails because the line in the library cannot find
Buffer()
.Reproduce by:
Running create-react-app and install this library. Then use the library with basic auth. The project will fail to run because of this error.