appscode-api-js-client
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -28,4 +28,14 @@ var RSVP = require('rsvp'); | ||
function checkAuth(resp) { | ||
return new RSVP.Promise(function (resolve, reject) { | ||
if (resp.status.code === "2") { // UNAUTHORIZED | ||
Window.location.replace("/"); | ||
} | ||
resolve(resp); | ||
}); | ||
}; | ||
module.exports = { | ||
ensureCsrfToken: ensureCsrfToken | ||
ensureCsrfToken: ensureCsrfToken, | ||
checkAuth: checkAuth | ||
}; |
{ | ||
"name": "appscode-api-js-client", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "AppsCode API JavaScript Client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
56245
1377