How to properly implement linkedIn login ? : <p>I have an andorid app and i am trying to implement linkedIn login in it. 
LinkedIn SDK has been successfully integrated and i am getting user information as well along with the email address. </p>

<p><strong>Here is how my application works for google login :</strong> </p>

<p>1) get access token on mobile </p>

<p>2) send email address with access token to server </p>

<p>3) fetch details of users with access token i received via webapi of google. </p>

<p>4) if the response email matches with the email received from mobile device then check for account exists or not of that email address . If not create account and login other wise login. </p>

<hr>

<p><strong>Problem with linkedIn :</strong> </p>

<p>The access token i have received belongs to mobile sdk and i cannot use the same token to make REST API request. (<a href="https://developer.linkedin.com/docs/android-sdk-auth" rel="noreferrer">as per documentation</a>)</p>

<blockquote>
  <p>Mobile vs. server-side access tokens</p>
  
  <p>It is important to note that access tokens that are acquired via the
  Mobile SDK are only useable with the Mobile SDK, and cannot be used to
  make server-side REST API calls.</p>
  
  <p>Similarly, access tokens that you already have stored from your users
  that authenticated using a server-side REST API call will not work
  with the Mobile SDK.</p>
</blockquote>

<p>So how to verify details in step 3) i mentioned above on my webserver  ?</p>

<hr>

<p><strong>Is It a disaster ?</strong> 
I am sure there has to be a way to do what i am trying to do, as there are many applications which let their users login through linkedin on their mobile apps. </p>

<p><em>Because if its not possible then anyone can easily change the email address the mobile app is sending to webserver after receiving from linkedin and i can login with any email address i want by doing that.</em> </p>
