Code Monkey home page Code Monkey logo

react-linkedin-login's Introduction

React LinkedIn Login Button

react-linkedin-login
import React from 'react'
import LinkedIn from 'react-linkedin-login'
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' />
    )
  }

}

react-linkedin-login's People

Contributors

calvinl avatar nicolaslopezj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-linkedin-login's Issues

Linkedin onPress prevent submit form

Im using your component to login.

When i click Linkedin button, my form do submit. And all form validation called.

How can i prevent the form submit when i click on Linkedin button?

My code:

                  <LinkedIn
                    clientId={Constants.LINKEDIN_CLIENT_ID}
                    callback={this.props.loginWithLinkedin}
                    text={multiStrings.loginWithLinkedin}
                    className="btn blue-bold small"
                  />

TypeError: Cannot read property 'string' of undefined

TypeError: Cannot read property 'string' of undefined
    at Object.<anonymous> (C:\Projects\project\frontend\node_modules\react-linkedin-login\lib\index.js:127:39)

Any idea why I get this?

<LinkedIn
                            clientId="sdsdssdsdds"
                            callback={this.callbackLinkedIn}
                            className="test"
                            text="Linkedin"
                        />

Using without decorators

Hey,
I am using react-universal with es6 and webpack2 without decorators

Could you provide an example against the same? The docs are very less to understand completely.

Would really appreciate if I could get a complete example for the same.

Thanks

Linked access token is always invalid

When i click on Linkedin button to connect with oauth api, then the access code that i am receiving is not working when fetching user basic detail info. It is always invalid.

but if i get a token from linkedin oauth api testing platform https://apigee.com/console/linkedin
then it works.

can you guide me to solve the issue?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.