easy to use AWS Cognito.
npm install ts-cognito``
import { CognitoClient } from "ts-cognito";
const client = new CognitoClient(COGNITO_CLIENT_ID);
const response = await client.initiateAuth("dummy", "dummy");
`
| method | input | output |
| ----------------------- | --------------------------------------------------------------------- | ---------------------------------------------- |
| signUp | username: string,password: string,attributes?: AttributeType[] | Promise\
| confirmSignUp | username: string,confirmationCode: string | Promise\
| resendConfirmationCode | username: string | Promise\
| initiateAuth | username: string,password: string | Promise\
| refreshTokenAuth | refreshToken: string | Promise\
| getAuthenticationTokens | response: InitiateAuthCommandOutput | AuthOutput |
| globalSignOut | accessToken: string | Promise\
| getUser | accessToken: string | Promise\
| updateUserAttributes | accessToken: string,attributes: AttributeType[] | Promise\
| respondToAuthChallenge | session: string,username: string,password: string | Promise\
| changePassword | accessToken: string,previousPassword: string,proposedPassword: string | Promise\
| forgotPassword | username: string | Promise\
| confirmForgotPassword | confirmationCode: string,username: string,password: string | Promise\
| deleteUser | accessToken: string | Promise\
`
import { CognitoAdminClient } from "ts-cognito";
const admin = new CognitoAdminClient(COGNITO_USER_POOL_ID);
const response = await admin.isExistUser("dummy");
``
| method | input | output |
| ------------ | ------------------------------------------- | ------------------------------------------------- |
| isExistUser | username: string | Promise\
| listUsers | limit: number,paginationToken?: string | Promise\
| getUser | userName: string | Promise\
| disableUser | userName: string | Promise\
| enableUser | userName: string | Promise\
| setAttribute | userName: string,name: string,value: string | Promise\
| deleteUser | username: string | Promise\