-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't see the linkedin login popup with this code #92
Comments
I am also facing the same issue. |
Please check if you have configured your redirect URIs correctly in developer console of LinkedIn. |
Now it's fixed. Thanks. I configured again redirect route in my react app. |
I am also encountering the same error. Have you resolved it? |
I am sure that I tried everything, but nothing helped. Could someone help us with this problem? |
@monirulislam027 Any suggestion? |
@beredi This token will be valid for the next 15 seconds. |
@monirulislam027 I am trying it <15sec. I can do it under 10sec but it always returns an Invalid access token. I know that this isn't a React lib problem, but I don't know where to ask for help. |
@beredi in order to call https://api.linkedin.com/v2/userinfo you need to provide 'openid' scope in your request. Being more specific, you need to add 'openid' scope in useLinkedIn hook next to 'email' scope as: |
@GabrieleGie thanks for your answer. I tried this combination of scopes, but the result is the same. |
@beredi how do you get your access token? From the code snipped you've printed, you only get an authorization code which is used later on to get access token. |
@GabrieleGie thank you very much!! You helped me a lot. 🥇 Thanks |
Solved it by formatting the scope as follows: |
This worked for me Below is the code for reference
|
I followed this tutorial but I can't see linkedin login popup as above image.
If I change client_id as sample code, it works but if I use my client_id, it doesn't work.
Please help me.
The text was updated successfully, but these errors were encountered: