Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

sbarbat/cognito-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

5 Commits

Repository files navigation

Cognito JS

A JS Wrapper for client-cognito-identity AWS-SDK V3

Installation

$ npm install cognito-js

Typescripts devs: all types are included in the package πŸ˜„

Usage

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
 });

About

A JS Wrapper for client-cognito-identity AWS-SDK V3

Topics

Resources

Stars

Watchers

Forks

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /