New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

giveindia-packages

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

giveindia-packages

Development Packages required for GiveIndia's Internal and External facing applications. Developed In React.js

  • 0.2.5
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

GiveIndia Development Components

Login Component for Fundraisers

Usage

Installation

  npm i @giveindia/loginmodule
  import LoginModule from '@giveindia/loginmodule'
  <LoginModule 
    open={true}
    showAdditionalDetails={false} // If you want to display the Title and Description of the Login Module 
    // If the above value is yes, you can customise the title and description on the Login Module
    title={`Title of Login Component`}
    description={`Description Text of Login Component`}            
    facebookAppID="required for Facebook Login"
    googleClientID="required for Google Login"        
    OTPLength={4} //Defaults to 4, if nothing provided    
    baseURL={`https://staging.letzchange.org`}  // Defaults to https://staging.letzchange.org
  />

Hooks that can be used for checking login and failure

  <LoginModule 
    open={true}    
    OTPLength={4} //Defaults to 4, if nothing provided
    onSuccess={onLoginSuccess}
    onFailure={onLoginFailure}
    baseURL="..."  // Defaults to https://staging.letzchange.org
  />
  const onLoginSuccess = (response) => {
    ....
    // Response Format
    /*
      {
        token: .....,
        user: {
          ....
        }
      } 
    */
  }

  const onLoginFailure = (response) => {
    ....
    // Response Format
  }

FAQs

Package last updated on 19 Mar 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