Skip to content

Conversation

@hbi99
Copy link

@hbi99 hbi99 commented Nov 23, 2020

I had to disable Husky since it prevented me from committing (there seems to be issues with test scripts and other stuff as well, for this repository).

The tiny changes is mainly in these two files:

src/api/ApiMethod.js 
src/oauth/index.js 

Your authorization endpoint returns a hostname, which seems to be required in ApiRequest (src/api/ApiMethod.js). The changes I've made, forwards the hostname value in order resolve the API request.

Finally, I tried to add a hostname prompt to https://github.com/pCloud/pcloud-sdk-js/blob/master/examples/node/token.js but that file does not to work at all, before any changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants