1.0.7 • Published 2 years ago

react-third-party-login v1.0.7

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

React Third Party Login

React Thrid Party Login Button Component

Feature

  • Google Sign-In for Websites
  • Naver Login
  • Kakao Login

Get Started

At least 16.8 version of react must be installed!

yarn add react-third-party-login

# or npm
npm install react-third-party-login

Usage

Sign in with Google Button

Reference Guide

import { GoogleLoginButton } from 'react-third-party-login';

<GoogleLoginButton
  clientId="your_OAuth_client_id(* Require)"
  cookiepolicy="single_host_origin"
  scope="profile email"
  onSuccessCallback={(googleUser) => {
    const profile = googleUser.getBasicProfile();
    console.log(`Token: ${googleUser.getAuthResponse().id_token}`);
    console.log(`ID: ${profile.getId()}`);
    console.log(`Name: ${profile.getName()}`);
    console.log(`Image URL: ${profile.getImageUrl()}`);
    console.log(`Email: ${profile.getEmail()}`);
  }}
  className="react-third-party-login-button__google"
>
  {/* children(or default styled button) */}
</GoogleLoginButton>;

Naver Login Button

Reference Guide

import { NaverLoginButton } from 'react-third-party-login';

<NaverLoginButton
  clientId="your_application_client_id(* Require)"
  redirectUri="redirect_url(* Require)"
  state="state(* Require)"
  isPopupOpen={false}
  popupWindowFeature="width=500, height=700, status"
  className="react-third-party-login-button__naver"
>
  {/* children(or default styled button) */}
</NaverLoginButton>;

Kakao Login Button

Reference Guide

import { KakaoLoginButton } from 'react-third-party-login';

<KakaoLoginButton
  clientId="your_application_client_id(* Require)"
  redirectUri="redirect_url(* Require)"
  state="state"
  isPopupOpen={false}
  popupWindowFeature="width=500, height=700, status"
  className="react-third-party-login-button__kakao"
>
  {/* children(or default styled button) */}
</KakaoLoginButton>;
1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago