Salesforce node bulk API 2.0 Upsert

Additional info:
When the Salesforce credentials weren’t working, I’ve tried setting up the connected app with all these scopes: Manage user data via APIs (api)
Manage user data via Web browsers (web)
Full access (full)
Perform requests at any time (refresh_token, offline_access)
Manage Data Cloud Ingestion API data (cdp_ingest_api)
Access the Salesforce API Platform (sfap_api)
Access all Data Cloud API resources (cdp_api)

added the client_id and client_secret and set the grant_type to ‘client_credentials’ too, but I’ve been getting a grant type not supported error.

The domain callback url is as follows: domain.my.salesforce.com/services/oauth2/callback

Not sure what I’m doing wrong, but I keep getting this unsupported grant_type error.