You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package is used to get authorization code for Linked In Log in feature using OAuth2 in a easy way, without redirecting your application to linked in authorization page. After have the authorization code, you can send it to server to continue to get information needed. For more, please see at [Authenticating with OAuth 2.0 - Linked In](https://developer.linkedin.com/docs/oauth2)
17
-
See `demo/src/index.js` for examples.
16
+
This package is used to get authorization code for Linked In Log in feature using OAuth2 in a easy way. After have the authorization code, you can send it to server to continue to get information needed. For more, please see at [Authenticating with OAuth 2.0 - Linked In](https://developer.linkedin.com/docs/oauth2)
17
+
See [Usage](#usage) and [Demo](#demo) for instruction.
18
18
19
19
## Table of contents
20
20
-[Changelog](#changelog)
@@ -24,7 +24,6 @@ See `demo/src/index.js` for examples.
24
24
-[Support IE](#support-ie)
25
25
-[Demo](#demo)
26
26
-[Props](#props)
27
-
-[Contribution](#contribution)
28
27
-[Issues](#issues)
29
28
30
29
## Changelog
@@ -44,6 +43,7 @@ First, we create a button and provide required props
44
43
import React, { Component } from 'react';
45
44
46
45
import { LinkedIn } from 'react-linkedin-login-oauth2';
46
+
import linkedin from 'react-linkedin-login-oauth2/assets/linkedin.png'
47
47
48
48
class LinkedInPage extends Component {
49
49
state = {
@@ -76,7 +76,7 @@ class LinkedInPage extends Component {
76
76
onSuccess={this.handleSuccess}
77
77
redirectUri="http://localhost:3000/linkedin"
78
78
>
79
-
<img src={require('./assets/linkedin.png')} alt="Log in with Linked In" style={{ maxWidth: '180px' }} />
79
+
<img src={linkedin} alt="Log in with Linked In" style={{ maxWidth: '180px' }} />
80
80
</LinkedIn>
81
81
{!code && <div>No code</div>}
82
82
{code && <div>Code: {code}</div>}
@@ -142,17 +142,8 @@ Earlier, this package might not work in IE11. The reason is that if popup and op
142
142
```
143
143
144
144
## Demo
145
-
You can see demo via this [https://github.com/nvh95/react-linkedin-login-oauth2/tree/master/demo/src](https://github.com/nvh95/react-linkedin-login-oauth2/tree/master/demo/src)
|||| See your app scope in `https://www.linkedin.com/developers/apps/${yourAppId}/auth`|
165
156
| onSuccess | function | yes ||
166
157
| onFailure | function | yes ||
167
-
| state | string | no | fdsf78fyds7fm |
168
158
| className | string | no | 'btn-linkedin' |
159
+
| style | object | no ||
169
160
| disabled | boolean | no | false |
170
161
| onClick | function | no ||
171
162
| children | function | no | Linked in Signin button |
172
163
| renderElement | function | no | Render prop to use a custom element, use props.onClick |
173
164
| supportIE | boolean | no | false |
174
165
| redirectPath | function | no | /linkedin |
175
166
176
-
Read more about props here [https://developer.linkedin.com/docs/oauth2](https://developer.linkedin.com/docs/oauth2)
167
+
Read more about props here [https://docs.microsoft.com/en-us/linkedin/shared/authentication/authorization-code-flow?context=linkedin/context#step-2-request-an-authorization-code](https://docs.microsoft.com/en-us/linkedin/shared/authentication/authorization-code-flow?context=linkedin/context#step-2-request-an-authorization-code)
177
168
178
169
`LinkedinPopUp` component:
179
170
No parameters needed
180
171
181
-
## Contribution
182
-
All helps are welcome. Please open a PR and describe what do you want to improve.
183
-
184
-
I would like to thank @Songuku95 and @YBeck for your contributions to this package.
185
-
186
172
## Issues
187
173
Please create an issue at [https://github.com/nvh95/react-linkedin-login-oauth2/issues](https://github.com/nvh95/react-linkedin-login-oauth2/issues). I will spend time to help you.
174
+
188
175
#### Failed to minify the code from this file: ./node_modules/react-linkedin-login-oauth2/node_modules/query-string/index.js:8
189
176
Please upgrade `react-linkedin-login-oauth2` to latest version following
0 commit comments