0.0.7 • Published 2 years ago

social-login-react v0.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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}
    />
0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago