@serverless/platform-sdk
Advanced tools
Comparing version 2.2.0-2-ge8b3a6c to 2.2.0-6-gfad84fc
@@ -8,3 +8,3 @@ 'use strict'; | ||
frontendUrl: 'http://localhost:3000/', | ||
backendUrl: 'https://localhost:3011/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(); |
{ | ||
"name": "@serverless/platform-sdk", | ||
"version": "2.2.0-2-ge8b3a6c", | ||
"version": "2.2.0-6-gfad84fc", | ||
"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
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
187311
2071