Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

amazon-cognito-srp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amazon-cognito-srp

Amazon Cognito SRP allows you to authenticate into Amazon Cognito by Username and Password through SRP based authentication (the USER_SRP_AUTH authentication flow).

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.3K
decreased by-27.82%
Maintainers
1
Weekly downloads
 
Created
Source

amazon-cognito-srp

Amazon Cognito SRP allows you to authenticate into Amazon Cognito by Username and Password through SRP based authentication (the USER_SRP_AUTH authentication flow).

Keywords: AWS, Amazon, Cognito, Sign-in, Authentication, SRP, Secure, Remote, Password, Protocol, Access, Control

JavaScript Examples

    const { AmazonCognitoSrp } = require('amazon-cognito-srp');
    
    const amazonCognitoSrp = new AmazonCognitoSrp({
        userPoolId: 'us-east-1_Gmmqbdhdd',
        clientId: '70681titoqu1dq7ho24j8h197o',
        username: 'test.email@gmail.com',
        password: 'test_password'
    });
    
    // If you run code in a sync function
    amazonCognitoSrp.authenticate().then(result => {
        console.log(result)
    });
    
    // If you run code in a async function
    (async () => {
        const result = await amazonCognitoSrp.authenticate();
        console.log(result)
    })();

TypeScript Examples

    import { AmazonCognitoSrp } from 'amazon-cognito-srp';
    import { AuthResult, Options } from 'amazon-cognito-srp/lib/types';

    const options: Options = {
      clientId: '70681titoqu1dq7ho24j8h197o',
      password: 'test_password',
      username: 'test.email@gmail.com',
      userPoolId: 'us-east-1_Gmmqbdhdd'
    }

    const amazonCognitoSrp = new AmazonCognitoSrp(options);

    // If you run code in a sync function
    amazonCognitoSrp.authenticate().then((authResult: AuthResult) => {
      console.log(authResult)
    });

    // If you run code in a async function
    const authResult: AuthResult = await amazonCognitoSrp.authenticate();
    console.log(authResult);

Keywords

FAQs

Package last updated on 15 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc