title: Google Sign-In With Token Laravel Socialite
body: <p><strong>Hey there,</strong></p>
  
  <p>I have problem with validating user logged in with Google on Android client,
  Server side is Laravel,
  In other side when user logged in, it gives me a token that i must verify with Google,</p>
  
  <p>Im using Socialite package, i don't know how i must get user from token, it has an method named <code>getUserFromToken</code> but it occurs many errors,</p>
  
  <p>Which credentials OAuth i must use from google console? Im just using Web Application credentials but no answer!</p>
  
  <p>Code is something like this:</p>
  
  <pre><code>$user = \Laravel\Socialite\Facades\Socialite::driver('google')-&gt;userFromToken($googleAuthCode);
      dd($user);
  </code></pre>
  
  <p>and error is:</p>
  
  <blockquote>
    <p>Client error: <code>GET
    https://www.googleapis.com/userinfo/v2/me?prettyPrint=false</code> resulted
    in a <code>401 Unauthorized</code> response: { "error": { "code": 401, "message":
    "Request is missing required authentication credential. Expected OAuth
    2 (truncated...)</p>
  </blockquote>
  
  <p>What i must add to the request?!</p>
  
  <p><strong>Thanks</strong></p>