- Notifications
You must be signed in to change notification settings - Fork0
sbarbat/cognito-js
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A JS Wrapper forclient-cognito-identity
AWS-SDK V3
$ npm install cognito-js
Typescripts devs: all types are included in the package 😄
importCognitoJSfrom"cognito-js";constcognito=newCognitoJS({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