cuongdevjs / reactjs-social-login

Group Hook ReactJS components for login social network
https://react-social-login.netlify.app
MIT License
174 stars 76 forks source link

LinkedIn onResolve not called #183

Open allenazamoras opened 2 weeks ago

allenazamoras commented 2 weeks ago

Describe the bug The LinkedIn onResolve is not being called after a successful login

<LoginSocialLinkedin
      client_id={LINKEDIN_CLIENT_ID}
      client_secret={LINKEDIN_CLIENT_SECRET}
      scope="openid,email,profile"
      onLoginStart={() => setButtonLoading()}
      onResolve={({ data, provider }) => signIn(data, provider)}
      onReject={(error) => {
        console.log("linkedin error: ", error);
      }}
      redirect_uri={`http://localhost:5173/`}
>
      . . .
</LoginSocialLinkedin>

Expected behavior The function provided for onResolve should be called.

Desktop (please complete the following information):

allenazamoras commented 2 weeks ago

On the same note, onReject does not run as well when authentication is unsuccessful or not pursued.