s-KaiNet / node-sp-auth

Unattended SharePoint http authentication with nodejs
MIT License
137 stars 56 forks source link

support using as fetchClientFactory #41

Closed wmertens closed 6 years ago

wmertens commented 6 years ago

It seems that pnp is no longer using global fetch, but instead uses the result of config.fetchClientFactory

This can be overridden with the setup function.

I'll be trying to use node-sp-auth for a custom fetch function, I'll share the code here, if you have any suggestions let me know.

koltyakov commented 6 years ago

There are 2 projects for this:

And we're working on merging best from these on another one.

wmertens commented 6 years ago

@koltyakov well pnp-auth seems to be exactly what I'm looking for - is there anything I should watch out for? In any case, if I need to make changes you can expect PRs :)