Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #25 #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fixes #25 #28

wants to merge 1 commit into from

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