You can’t (and shouldn’t) do this. When a user logs in with LinkedIn, they are sent to linkedin.com where they enter their credentials and a token is returned to the application if it is successful. You shouldn’t be handling passwords for a third-party identity provider.
If you want to get API access to a user’s LinkedIn account you can use their IDP access token.