tenq-soc-auth
v1.0.0
Published
Made with create-react-library
Downloads
2
Readme
tenq-soc-auth
Made with create-react-library
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