@serverless/platform-sdk
Advanced tools
Comparing version 2.2.0 to 2.2.1-2-g90e3144
@@ -8,3 +8,3 @@ 'use strict'; | ||
frontendUrl: 'http://localhost:3000/', | ||
backendUrl: 'https://api.serverless-dev.com/core/', | ||
backendUrl: 'http://localhost:3011/core/', | ||
loginBrokerUrl: 'https://api.serverless-dev.com/login/', | ||
@@ -11,0 +11,0 @@ logDestinationUrl: 'https://api.serverless-dev.com/malt/', |
@@ -43,3 +43,3 @@ 'use strict'; | ||
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(tenant) { | ||
var configFile, loginIdentityPromises, transactionId, scope, AUTH0_DOMAIN, auth0Queries, auth0Endpoint, data, decoded, id, updatedConfigFile, accessKey; | ||
var configFile, loginIdentityPromises, transactionId, scope, AUTH0_DOMAIN, auth0Queries, auth0Endpoint, data, decoded, id, expiresAt, updatedConfigFile, accessKey; | ||
return regeneratorRuntime.wrap(function _callee$(_context) { | ||
@@ -87,2 +87,3 @@ while (1) { | ||
id = decoded.tracking_id || decoded.sub; | ||
expiresAt = data.expires_in ? Date.now() + data.expires_in : data.expires_at; | ||
@@ -100,4 +101,4 @@ configFile.userId = id; | ||
idToken: data.id_token, | ||
expiresAt: Date.now() + data.expires_in, | ||
username: decoded.nickname | ||
expiresAt: expiresAt, | ||
username: data.username | ||
} | ||
@@ -123,10 +124,10 @@ | ||
if (!(tenant && tenant !== 'tenantname')) { | ||
_context.next = 32; | ||
_context.next = 33; | ||
break; | ||
} | ||
_context.next = 30; | ||
_context.next = 31; | ||
return (0, _accessKeys.createAccessKeyForTenant)(tenant); | ||
case 30: | ||
case 31: | ||
accessKey = _context.sent; | ||
@@ -140,6 +141,6 @@ | ||
case 32: | ||
case 33: | ||
return _context.abrupt('return', updatedConfigFile); | ||
case 33: | ||
case 34: | ||
case 'end': | ||
@@ -146,0 +147,0 @@ return _context.stop(); |
@@ -19,3 +19,3 @@ 'use strict'; | ||
var browser = process.env.BROWSER; | ||
if (browser === 'none' || (0, _isDocker2.default)() || ['darwin', 'linux'].includes(process.platform) && !process.env.DISPLAY) { | ||
if (browser === 'none' || (0, _isDocker2.default)()) { | ||
console.log(_chalk2.default.green('Please open your browser & open the URL below to login:')); | ||
@@ -22,0 +22,0 @@ console.log(_chalk2.default.yellow(url)); |
{ | ||
"name": "@serverless/platform-sdk", | ||
"version": "2.2.0", | ||
"version": "2.2.1-2-g90e3144", | ||
"description": "Serverless Platform SDK", | ||
@@ -5,0 +5,0 @@ "author": "Serverless, Inc.", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
2071
21
187032
2