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