badgateway / oauth2-client

OAuth2 client for Node and browsers
https://www.npmjs.com/package/@badgateway/oauth2-client
MIT License
269 stars 31 forks source link

Feat: Add extra params support to TokenParams #139

Open rihardsgravis opened 4 months ago

rihardsgravis commented 4 months ago

Some providers expect to send extra parameters (e.g. HubSpot expects the client_id to be present) to the token exchange endpoint, similar to the auhtorization URI.

paul-hicks-mahana commented 3 months ago

Isn't the client_id added automatically in the request() method? If you set your authenticationMethod to client_secret_post, the client_id (and client_secret, if provided) are added to the request body.