@highpoint/get-ps-token
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -0,1 +1,4 @@ | ||
# v0.1.2 | ||
* Throw an exception if HTTP username/password is missing or incorrect. | ||
# v0.1.1 | ||
@@ -2,0 +5,0 @@ * Throw an exception if PS_TOKEN is not set, i.e. the username/password was |
{ | ||
"name": "@highpoint/get-ps-token", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Populate cookie jar with PeopleSoft token", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -25,2 +25,6 @@ const request = require('request-promise'); | ||
if (response.statusCode === 401) { | ||
throw new Error('Invalid web server username and/or password'); | ||
} | ||
if (response.statusCode >= 400) { | ||
@@ -31,3 +35,3 @@ throw new Error(response.message); | ||
if (!jar.getCookieString(uri).includes('PS_TOKEN')) { | ||
throw new Error('Invalid username and/or password'); | ||
throw new Error('Invalid PeopleSoft username and/or password'); | ||
} | ||
@@ -34,0 +38,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4619
33