Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sbarbat/cognito-js
A JS Wrapper for client-cognito-identity AWS-SDK V3
https://github.com/sbarbat/cognito-js
aws-sdk cognito cognito-idp js nodejs
Last synced: about 2 months ago
JSON representation
A JS Wrapper for client-cognito-identity AWS-SDK V3
- Host: GitHub
- URL: https://github.com/sbarbat/cognito-js
- Owner: sbarbat
- Created: 2022-05-15T14:51:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-15T21:28:42.000Z (over 2 years ago)
- Last Synced: 2024-10-11T11:11:13.337Z (3 months ago)
- Topics: aws-sdk, cognito, cognito-idp, js, nodejs
- Language: TypeScript
- Homepage:
- Size: 39.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cognito JS
A JS Wrapper for `client-cognito-identity` AWS-SDK V3
## Installation
```bash
$ npm install cognito-js
```> Typescripts devs: all types are included in the package :smile:
## Usage
```javascript
import CognitoJS from "cognito-js";const cognito = new CognitoJS({
USER_POOL_ID: "your_user_pool_id",
COGNITO_CLIENT_ID: "your_client_id",
COGNITO_CLIENT_SECRET: "your_client_secret",
});cognito
.signIn("my_username", "my_password")
.then((response) => {
// do something with the response
})
.catch((error) => {
// do something with the error
});
```