Closed MeryAmun closed 7 months ago
please use redirect_uri by window.location.href
instead.
@cuongdevjs Thank you sir but it still did not work
is Login put on a separate page or just a component?
its in the same page with the other reactjs-social-logins... just like the demo
it should be put on a separate page. For example: YOUR_DOMAIN/login, if it is only a small component in a popup / modal / dialog, it won't work.
It workss when I move the login coode into the /login page...i think the problem was that iy it nested too deep in the code
It workss when I move the login coode into the /login page...i think the problem was that iy it nested too deep in the code thank you sir @cuongdevjs .But I need to be clear if that was the reason
When I click the , new windoe pops up with sign in form, after filling in the right credentials ,I get the authrization request and am redirected after clicking authorize. Only that popup does not close automatically when i click cancel or authorize like here https://react-social-login.netlify.app/, and onResolve function is not called.Infact only onLoginStart is called and "started" is logged to the console.thanks.
Here is my code
<LoginSocialLinkedin isOnlyGetToken client_id={process.env.REACT_APP_LINKEDIN_APP_ID} client_secret={process.env.REACT_APP_LINKEDIN_APP_SECRET} redirect_uri={
${window.location.origin}
} onLoginStart={() => console.log("Started")} onLogoutSuccess={() => console.log("Successful")} scope="profile email" onResolve={({ provider, data }) => { console.log(provider); console.log(data); console.log("testing");