proactive-sharepoint-auth
v0.1.0
Published
proactive-sharepoint-auth
Downloads
1,326
Readme
proactive-sharepoint-auth
This package is used to get SharePoint authenticate cookie.
For use in task running file use as follow..
JavaScript: var proactive = require('proactive-sharepoint-auth'); var auth = new proactive.SharePoint.Authenticate("https://URL.sharepoint.com", "[email protected]", "PASSWORD"); auth.authenticate().then(function(cookie) { //... run code here which uses cookie }).catch(function (reason) { console.log(reason); });
TypeScript var proactive = require('proactive-sharepoint-auth'); var auth = new proactive.SharePoint.Authenticate("https://URL.sharepoint.com", "[email protected]", "PASSWORD"); auth.authenticate().then(cookie => { //... run code here which uses cookie }).catch(reason => { console.log(reason); });