llf

linkedin-login-for-react

LinkedIn authentication button for React

Showing:

Popularity

Downloads/wk

323

GitHub Stars

2

Maintenance

Last Commit

3mos ago

Contributors

3

Package

Dependencies

1

Size (min+gzip)

1.9KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Readme

linkedin-login-for-react

npm install linkedin-login-for-react

Sample Use

import React from "react";
import LinkedIn from "linkedin-login-for-react";
import styles from "./styles.css";

class LoginWithLinkedin extends React.Component {
  static propTypes = {};

  /*
    ** @code = authorization code from linkedin api
    ** @redirectUri = redirect uri from linkedin api
    ** @error = error message sign in failed
    */
  callbackLinkedIn = (error, code, redirectUri) => {
    if (error) {
      // signin failed
    } else {
      // Obtain authorization token from linkedin api
      // see https://developer.linkedin.com/docs/oauth2 for more info
    }
  };

  render() {
    return (
      <LinkedIn
        clientId="xxx"
        callback={this.callbackLinkedIn}
        className={styles.linkedin}
        scope={["r_liteprofile","r_emailaddress"]}
        text="Login With LinkedIn"
      />
    );
  }
}

export default LoginWithLinkedin;

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100