1.0.0 • Published 2 years ago

tenq-soc-auth v1.0.0

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

tenq-soc-auth

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save tenq-soc-auth
or
yarn add tenq-soc-auth

Usage

import React from 'react'

import TenqSocAuth  from 'tenq-soc-auth'
import 'tenq-soc-auth/dist/index.css'

const autEventListener = (data) => {
  console.log(data)
  console.log(JSON.stringify(data.data))
}

const App = () => {
  const host = 'https://localhost';
  return <div className={'pa-md'}>
    <br/>
    <TenqSocAuth
      provider={'google'}
      host={host}
      label={'google'}
      onAuth={autEventListener}
    />
    <br/><br/>
    <TenqSocAuth
      provider={'vkontakte'}
      host={host}
      label={'vk'}
      onAuth={autEventListener}
    />
    <br/><br/>
    <TenqSocAuth
      provider={'facebook'}
      host={host}
      label={'facebook'}
      onAuth={autEventListener}
    />

  </div>
}

export default App

License

MIT © taraschubarko