$client_id, 'redirect_uri' => $redirect_uri, 'response_type' => 'code', 'scope' => 'email profile', // We need user's email and profile ]); header('Location: ' . $auth_url); exit(); } ?> Sign in with Google

Sign in with Google

Google Sign-In Sign in with Google