Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aws-user-service

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-user-service - npm Package Compare versions

Comparing version 1.0.13 to 1.1.0

33

index.js

@@ -15,2 +15,6 @@ const AWS = require('aws-sdk');

async getUser(userId) {
return await getUserById(userId)
}
async getUserById(userId) {
const listUsersResponse = await this.cognitoidentityserviceprovider.listUsers({

@@ -20,4 +24,4 @@ UserPoolId: this.authIntegrationUserPoolId,

Limit: 1
}).promise();
return listUsersResponse.Users[0];
}).promise()
return listUsersResponse.Users[0]
}

@@ -83,4 +87,12 @@

updateUserAttributes = async (userId, attributeName, attributeValue) => {
async impersonateUser(userId, user) {
}
async removeImpersonation(userId) {
//await updateUserAttributes(userId, )
}
async updateUserAttributes(userId, attributeName, attributeValue) {
var params = {

@@ -98,2 +110,17 @@ "UserAttributes": [

}
async updateUserAttributes(userId, attributeName, attributeValue) {
var params = {
"UserAttributes": [
{
"Name": attributeName,
"Value": attributeValue
}
],
"Username": userId,
"UserPoolId": this.authIntegrationUserPoolId
}
return await this.cognitoidentityserviceprovider.adminUpdateUserAttributes(params).promise()
}
}

2

package.json
{
"name": "aws-user-service",
"version": "1.0.13",
"version": "1.1.0",
"description": "Contain methods to work with asw user",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc