pipedrive/client-nodejs

Wrong example

Tr1Galki opened this issue · 1 comments

Is it mistake at complete example?
app.get('/callback', (req, res) => { const authCode = req.query.code; const promise = apiClient.authorize(code);
would it be correct to enter here?
apiClient.authorize(authCode );

Hey, @Tr1Galki , thank you for the sharp eye and reporting! Yes, you are correct, the variable name in the authorize method should be authCode. We fixed it in the v20.5.2.

I will close the issue, cheers!