Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

social-login-react

papapitufo19ISC0.0.7

Customizable react components for social login

social-login, facebook-login, google-login

readme

social-login-react

Intends to provide reusable components that will allow you to access the login flow for several social platforms, some will work as standalone frontend components, others will need some type of backend support.

Platforms

  • Facebook
  • Google

Components

<FacebookSignIn>

This is a JS only component, it uses the current facebook sdk, only a clientId is needed

   <FacebookSignIn 
      clientId={string}
      onSuccessLogin={func}
      onErrorLogin={func}
      actionComponent={component.html}
      scopes={array}
      onAuthorizationAcquired={func}
    />

<GoogleGsiSignIn>

This is a JS only component, it uses the new GSI sdk and it allows for very little buttom customizations it needs a clientId

    <GoogleGsiSignIn
      clientId={string}
      onSuccessLogin={func}
      onErrorLogin={func}
      customClass={string}
    />

<GoogleSignIn>

This component needs backend support, namely an authorizationRequest for backend processing of authorization 'code'

    <GoogleSignIn 
      clientId={string}
      authorizationRequest={string.url}
      onSuccessLogin={func}
      onErrorLogin={func}
      actionComponent={component.html}
    />