react-linkedin-auth

React LinkedIn Auth button, Forked From [https://github.com/orionsoft/react-linkedin-login]

Usage no npm install needed!

<script type="module">
  import reactLinkedinAuth from 'https://cdn.skypack.dev/react-linkedin-auth';
</script>

README

React LinkedIn Auth Forked from React LinkedIn Login

react-linkedin-auth
import React from 'react'
import LinkedIn from 'react-linkedin-auth'
import styles from './styles.css'
import autobind from 'autobind-decorator'

export default class LoginWithLinkedin extends React.Component {

  static propTypes = {

  }

  @autobind
  callbackLinkedIn ({code, redirectUri}) {
    // Login with linkedin
  }

  render () {
    return (
      <LinkedIn
        clientId='xxx'
        callback={this.callbackLinkedIn}
        className={styles.linkedin}
        text='LinkedIn' />
    )
  }

}