https://github.com/niinpatel/linkedin-login-react
LinkedIn authentication button for React
https://github.com/niinpatel/linkedin-login-react
authentication linkedin linkedin-login login oauth2 react
Last synced: 4 months ago
JSON representation
LinkedIn authentication button for React
- Host: GitHub
- URL: https://github.com/niinpatel/linkedin-login-react
- Owner: niinpatel
- License: mit
- Created: 2018-08-16T15:42:22.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T05:02:00.000Z (over 3 years ago)
- Last Synced: 2026-02-18T14:49:14.171Z (4 months ago)
- Topics: authentication, linkedin, linkedin-login, login, oauth2, react
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/linkedin-login-for-react
- Size: 1.86 MB
- Stars: 5
- Watchers: 0
- Forks: 8
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# linkedin-login-for-react
npm install linkedin-login-for-react
**Sample Use**
```javascript
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 (
);
}
}
export default LoginWithLinkedin;
```