aws-user-service
Advanced tools
Comparing version 1.1.13 to 1.1.14
16
index.js
@@ -1,8 +0,8 @@ | ||
const AWS = require('aws-sdk'); | ||
AWS.config.update({ region: process.env.REGION }); | ||
const AWS = require('aws-sdk') | ||
AWS.config.update({ region: process.env.REGION }) | ||
module.exports = class AwsUserService { | ||
constructor(authIntegrationUserPoolId) { | ||
this.authIntegrationUserPoolId = authIntegrationUserPoolId; | ||
this.cognitoidentityserviceprovider = new AWS.CognitoIdentityServiceProvider(); | ||
this.authIntegrationUserPoolId = authIntegrationUserPoolId | ||
this.cognitoidentityserviceprovider = new AWS.CognitoIdentityServiceProvider() | ||
} | ||
@@ -93,4 +93,2 @@ | ||
console.log(cognitoResponse) | ||
if (cognitoResponse == null) | ||
@@ -107,7 +105,3 @@ return false | ||
senterAdminGroups = cognitoResponse.Groups.filter(x => x.GroupName === "SenterAdmin") | ||
console.log(senterAdminGroups) | ||
return senterAdminGroups.length === 1 | ||
return cognitoResponse.Groups.filter(x => x.GroupName === "SenterAdmin").length === 1 | ||
} | ||
@@ -114,0 +108,0 @@ |
{ | ||
"name": "aws-user-service", | ||
"version": "1.1.13", | ||
"version": "1.1.14", | ||
"description": "Contain methods to work with asw user", | ||
@@ -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
4172
97