-
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
Upgrade to version 2 error user_closed_popup even if I get the code with onSuccess with NextJS #56
Comments
@groomain Thank you for submitting issue. Can you provide more information such as reproducible source code, screenshot/ video or environment? |
+1 suddenly stopped working. |
Same here. I am getting onSuccess response, but then, also an onError: "user_closed_popup" after popup closes automatically.
In return --> in routes --> EDIT: It's working fine now. |
Hey @MrHolmes19 facing the same issue right now, do you by any chance remember how you managed to fix it? |
I think it got fixed by itself that time. I just checked my code and it is almost the same (I added a signIn function after getting the success response and also changed "clientId: env.LINKEDIN_CLIENT_ID as string" because it was throwing me a Typescript warning) but that's it. |
@psushi @MrHolmes19 I too was tripped by this very bad!! After doing a lot of experimentation... I found out that you must somehow re-render your UI (in which linkedInLogin component is used) as soon as you receive the code or else the failure callback will also be triggered!! |
@nvh95 and @asanovr I have created an issue regarding this. If this can be solved easily well and good. If not at least a mention of this (i.e. to re-render/remove UI after receiving the code in onSuccess callback) in docs could save one hours and not discard the lib for a bug like this... as its a great lib!! |
Solved it by formatting the scope as follows: |
Hi,
Thanks for this hook!
I've upgraded to version 2 and the user_closed_popup error is always triggered.
Even if I don't close the popup. It close automatically.
The connexion is working because I get the code with the onSuccess callback.
Any idea why?
Thanks,
The text was updated successfully, but these errors were encountered: