pronauthservice
v1.0.6
Published
Authentication and getting token
Readme
Pron Auth Service
Installation
Pron requires Node.js v4+ to run.
Install the dependencies and devDependencies.
$ npm i pronauthserviceSetting Up
const pronAuthService = require('pronauthservice');
await pronAuthService.init({
domain:'https://example.com',
fingerPrint:'hash' //get it from origin site,
user:{
login:'test',
password:'12345'
}
});Usage
const data = await pronAuthService.getSource({
method: "POST",
url: "/api/getAccountDetails",
payload: false,
referer: "account"
});