{"id":24225761,"url":"https://github.com/instea/amazon-cognito-identity-js-promises","last_synced_at":"2026-05-22T16:35:13.542Z","repository":{"id":64726197,"uuid":"577302075","full_name":"instea/amazon-cognito-identity-js-promises","owner":"instea","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-13T16:30:09.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-15T01:34:57.978Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/instea.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-12T12:45:51.000Z","updated_at":"2022-12-13T16:30:18.000Z","dependencies_parsed_at":"2022-12-14T13:03:08.354Z","dependency_job_id":null,"html_url":"https://github.com/instea/amazon-cognito-identity-js-promises","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instea%2Famazon-cognito-identity-js-promises","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instea%2Famazon-cognito-identity-js-promises/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instea%2Famazon-cognito-identity-js-promises/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/instea%2Famazon-cognito-identity-js-promises/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/instea","download_url":"https://codeload.github.com/instea/amazon-cognito-identity-js-promises/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241780498,"owners_count":20019061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-14T08:15:57.123Z","updated_at":"2026-05-22T16:35:08.522Z","avatar_url":"https://github.com/instea.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# amazon-cognito-identity-js-promises\n\nThis package provides promisified version of [amazon-cognito-identity-js](https://github.com/aws-amplify/amplify-js/tree/master/packages/amazon-cognito-identity-js) - Amazon Cognito Identity SDK for JavaScript.\n\n## Installation\n\n```sh\nnpm install amazon-cognito-identity-js-promises\n```\n\n## Basic Usage\n\n```js\nimport {\n  AuthenticationDetails,\n  CognitoUser,\n  CognitoUserPool,\n} from 'amazon-cognito-identity-js-promises';\n\nconst userPool = new CognitoUserPool({\n  UserPoolId: '...',\n  ClientId: '...',\n});\n\n// simple sign-in\n\ntry {\n  const user = new CognitoUser({\n    Pool: userPool,\n    Username: 'myUsername',\n  });\n  user.setAuthenticationFlowType('USER_PASSWORD_AUTH');\n  await user.authenticateUser(\n    new AuthenticationDetails({\n      Username: 'myUsername',\n      Password: 'myPassword',\n    })\n  );\n} catch (err) {\n  console.error('error signing in', err);\n}\n\nconsole.log('current user', userPool.getCurrentUser());\n```\n\nSee [amazon-cognito-identity-js](https://github.com/aws-amplify/amplify-js/tree/master/packages/amazon-cognito-identity-js) for more examples.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstea%2Famazon-cognito-identity-js-promises","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finstea%2Famazon-cognito-identity-js-promises","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstea%2Famazon-cognito-identity-js-promises/lists"}