@serverless/platform-sdk
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -94,3 +94,3 @@ 'use strict'; | ||
opnRes = _context3.sent; | ||
return _context3.abrupt('return', new Promise(function (resolve) { | ||
return _context3.abrupt('return', new Promise(function (resolve, reject) { | ||
app.get('/', function () { | ||
@@ -109,11 +109,21 @@ var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(req, res) { | ||
if (!req.query.unverified) { | ||
_context.next = 5; | ||
break; | ||
} | ||
res.end(); | ||
server.close(); | ||
return _context.abrupt('return', reject('Complete sign-up before logging in.')); | ||
case 5: | ||
if (!req.query.code) { | ||
_context.next = 12; | ||
_context.next = 16; | ||
break; | ||
} | ||
_context.next = 4; | ||
_context.next = 8; | ||
return (0, _getTokens2.default)(req.query.code); | ||
case 4: | ||
case 8: | ||
tokens = _context.sent; | ||
@@ -133,6 +143,6 @@ | ||
res.end(); | ||
_context.next = 19; | ||
_context.next = 23; | ||
break; | ||
case 12: | ||
case 16: | ||
endLoginQueries = _querystring2.default.stringify({ | ||
@@ -153,3 +163,3 @@ cli: 'true', | ||
case 19: | ||
case 23: | ||
case 'end': | ||
@@ -203,3 +213,3 @@ return _context.stop(); | ||
if (!tenant) { | ||
if (!(tenant && tenant !== 'tenantname')) { | ||
_context2.next = 16; | ||
@@ -206,0 +216,0 @@ break; |
{ | ||
"name": "@serverless/platform-sdk", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "Serverless Platform SDK", | ||
@@ -5,0 +5,0 @@ "author": "Serverless, Inc.", |
Sorry, the diff of this file is not supported yet
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
152590
1601