{"_id":"@dependahub/aws-cognito","_rev":"3-796bb78631e96712a3e89b395425794d","name":"@dependahub/aws-cognito","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@dependahub/aws-cognito","version":"1.0.0","author":{"name":"DependaHub"},"license":"MIT","_id":"@dependahub/aws-cognito@1.0.0","maintainers":[{"name":"madakaheri","email":"madakaheri@gmail.com"}],"xo":{"rules":{"capitalized-comments":"off"},"ignores":["@types"]},"dist":{"shasum":"f6a26cd72e57f2dcbf160b1c4b539927632bed32","tarball":"https://registry.npmjs.org/@dependahub/aws-cognito/-/aws-cognito-1.0.0.tgz","fileCount":7,"integrity":"sha512-YOFpc00SJEPdLxQlbIXzq61ntjqpIBfwN9SGyKhAlcv/48QFP1l2OjuI3uwfe9I04SVpCoGJA8wwFAADGPC1Hg==","signatures":[{"sig":"MEYCIQDM8mpfLlgd73v0E3b3oeD01s4fDIwk4ixP/Q1MJNxIcwIhAP7p0OL3tfo2+8JRalm+Zibtgndw8dqtDD3UftaJTXLa","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20580},"main":"src/index.js","type":"module","types":"@types/index.d.ts","gitHead":"8fb271c820cbc896d3e4531142794ae4255ed4f9","scripts":{"test":"xo && ava","build":"rm -rf @types && tsc"},"_npmUser":{"name":"madakaheri","email":"madakaheri@gmail.com"},"_npmVersion":"11.6.0","description":"Cognito操作モジュール","directories":{},"_nodeVersion":"22.19.0","dependencies":{"@aws-sdk/credential-providers":"^3.782.0","@aws-sdk/client-cognito-identity-provider":"^3.782.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.60.0","ava":"^6.2.0","@types/node":"^24.3.1"},"_npmOperationalInternal":{"tmp":"tmp/aws-cognito_1.0.0_1760859531048_0.36242984894335417","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@dependahub/aws-cognito","version":"1.0.1","keywords":["aws","cognito"],"author":{"name":"DependaHub"},"license":"MIT","_id":"@dependahub/aws-cognito@1.0.1","maintainers":[{"name":"madakaheri","email":"madakaheri@gmail.com"}],"homepage":"https://github.com/dependahub/aws-cognito#readme","bugs":{"url":"https://github.com/dependahub/aws-cognito/issues"},"xo":{"rules":{"capitalized-comments":"off"},"ignores":["@types"]},"dist":{"shasum":"3604e821fb72e70d34d2d22295f30ce168b8efd6","tarball":"https://registry.npmjs.org/@dependahub/aws-cognito/-/aws-cognito-1.0.1.tgz","fileCount":7,"integrity":"sha512-1651gzHsBzMh2V12qeoAEZDOfZMYlqypAuMQHFoQ+5olDXNq13yZAzU+HdHBea8LvTKQnHWI9r96i6cXMTLyYA==","signatures":[{"sig":"MEUCIQC71ZU2eHsPsqt+aGVOWMY0huByAud1IasmmEYUskeJ7wIgSAhHSkb14aC2vnali4J9FOV5rglPuWJE2F2ZuFNtv+w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20877},"main":"src/index.js","type":"module","types":"@types/index.d.ts","gitHead":"c5cf427de8536e7c43df98b4e06672a3fafc8904","scripts":{"test":"xo && ava","build":"rm -rf @types && tsc"},"_npmUser":{"name":"madakaheri","email":"madakaheri@gmail.com"},"repository":{"url":"git+https://github.com/dependahub/aws-cognito.git","type":"git"},"_npmVersion":"11.6.0","description":"Cognito操作モジュール","directories":{},"_nodeVersion":"22.19.0","dependencies":{"@aws-sdk/credential-providers":"^3.782.0","@aws-sdk/client-cognito-identity-provider":"^3.782.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.60.0","ava":"^6.2.0","@types/node":"^24.3.1"},"_npmOperationalInternal":{"tmp":"tmp/aws-cognito_1.0.1_1760860017893_0.3208923956121501","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@dependahub/aws-cognito","version":"1.1.0","description":"Cognito操作モジュール","main":"src/index.js","type":"module","types":"@types/index.d.ts","scripts":{"build":"rm -rf @types && tsc","test":"xo && node --test"},"dependencies":{"@aws-sdk/client-cognito-identity-provider":"^3.1000.0","@aws-sdk/credential-providers":"^3.1000.0"},"devDependencies":{"@types/node":"^25.3.3","xo":"^1.2.3"},"xo":[{"ignores":["**/@types/**"]},{"rules":{"capitalized-comments":"off","@eslint-community/eslint-comments/no-unused-disable":"off"}}],"homepage":"https://github.com/dependahub/aws-cognito#readme","bugs":{"url":"https://github.com/dependahub/aws-cognito/issues"},"repository":{"type":"git","url":"git+https://github.com/dependahub/aws-cognito.git"},"author":{"name":"DependaHub"},"license":"MIT","keywords":["aws","cognito"],"gitHead":"6eba72b947c7665dffcb3b10eebcd204b27905fd","_id":"@dependahub/aws-cognito@1.1.0","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-nR858gC56Po8SW51p5+6gFGVGawq8Ppg4psjCHuffQrKY+9i9KkiplS5dkeSwRczskc1YE8nl17/2c6Q1zjmaQ==","shasum":"f37b726030cb3fca488b33d6a1fdc1723941273a","tarball":"https://registry.npmjs.org/@dependahub/aws-cognito/-/aws-cognito-1.1.0.tgz","fileCount":7,"unpackedSize":20977,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIG6xNIAbkQN/zu/meNZOJ335XlzOa7E8flfCxHSenvTkAiEAw98v1SdRWc2zL6imbnD5wqbQjlT8nGpaCz7DbOXOSJE="}]},"_npmUser":{"name":"madakaheri","email":"madakaheri@gmail.com"},"directories":{},"maintainers":[{"name":"madakaheri","email":"madakaheri@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/aws-cognito_1.1.0_1772522348603_0.1396947375531874"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-19T07:38:50.957Z","modified":"2026-03-03T07:19:08.874Z","1.0.0":"2025-10-19T07:38:51.255Z","1.0.1":"2025-10-19T07:46:58.068Z","1.1.0":"2026-03-03T07:19:08.751Z"},"bugs":{"url":"https://github.com/dependahub/aws-cognito/issues"},"author":{"name":"DependaHub"},"license":"MIT","homepage":"https://github.com/dependahub/aws-cognito#readme","keywords":["aws","cognito"],"repository":{"type":"git","url":"git+https://github.com/dependahub/aws-cognito.git"},"description":"Cognito操作モジュール","maintainers":[{"name":"madakaheri","email":"madakaheri@gmail.com"}],"readme":"[![Node.js Version](https://img.shields.io/badge/node-24.x-brightgreen.svg)](https://nodejs.org/)\n[![XO code style](https://shields.io/badge/code_style-5ed9c7?logo=xo&labelColor=gray&logoSize=auto)](https://github.com/xojs/xo)\n\n# AWS Cognito\n\nCognito操作セット\n\n## Examples\n\n```javascript\nimport process from 'node:process';\nimport {cognito} from '@dependahub/aws-cognito';\n\nconst {REGION, USERPOOLID} = process.env;\n\ncognito.configure({\n\tuserPoolId: USERPOOLID, \n\tregion: REGION\n});\n\nconst cognitoUser = await (async () => {\n\tconst {Users} = await cognito.listUsers({\n\t\tFilter: `sub = \"${cognitoSub}\"`,\n\t\tLimit: 1,\n\t});\n\treturn Users[0];\n})();\n```\n\n## Test Examples\n\n```javascript\nimport test from 'ava';\nimport {cognito} from '@dependahub/aws-cognito';\n\ncognito.configure({\n\tprofile: 'your-aws-profile-dev'\n\tuserPoolId: 'xxxxxxxxxxx', \n\tregion: 'ap-northeast-1',\n});\n\ntest('listUsers', async t => {\n\tconst cognitoSub = 'xxxxxxxxxxxxxx';\n\tconst cognitoUser = await (async () => {\n\tconst {Users} = await cognito.listUsers({\n\t\t\tFilter: `sub = \"${cognitoSub}\"`,\n\t\t\tLimit: 1,\n\t\t});\n\t\treturn Users[0];\n\t})();\n\tt.is(cognitoUser.Username == 'TestUser')\n});\n```\n\n## Required Permissions\n\n```json\n{\n  \"Effect\": \"Allow\",\n  \"Action\": [\n    \"cognito-idp:ListUsersInGroup\",\n    \"cognito-idp:AdminUserGlobalSignOut\",\n    \"cognito-idp:AdminEnableUser\",\n    \"cognito-idp:AdminDisableUser\",\n    \"cognito-idp:AdminRemoveUserFromGroup\",\n    \"cognito-idp:AdminAddUserToGroup\",\n    \"cognito-idp:AdminListGroupsForUser\",\n    \"cognito-idp:AdminGetUser\",\n    \"cognito-idp:AdminConfirmSignUp\",\n    \"cognito-idp:ListUsers\",\n    \"cognito-idp:ListGroups\"\n  ],\n  \"Resource\": {\n    \"Fn::Join\": [\n      \"\",\n      [\n        \"arn:aws:cognito-idp:\",\n        {\n          \"Ref\": \"AWS::Region\"\n        },\n        \":\",\n        {\n          \"Ref\": \"AWS::AccountId\"\n        },\n        \":userpool/\",\n        {\n          \"Ref\": \"authAuthUserPoolId\"\n        }\n      ]\n    ]\n  }\n}\n```\n","readmeFilename":"README.md"}