- Issue created by @arkepp
https://www.npmjs.com/package/@drupal-api-client/json-api-client
The username and password in the Basic auth example has to be wrapped in "credentials"
Not enough to file a separate issue, but also encountered when first trying to use the lib:
baseUrl has historically (in Drupal) been the full, public URL to the site, i.e. http://host/path
In that context, it is behaving in a surprising way here. I expected http://host/path to use http://host/path/jsonapi , but it goes to http://host/jsonapi
With apiPrefix set to path/jsonapi it works, but it seems to me like this should be part of the baseUrl.