Social Login using PHP and Google

PHP 
In this tutorial we look at how we can add social login to our web application using Google. We do this in PHP.

The auth file - we redirect to here

<?php
require 'functions.php';

if(isset($_GET["code"])){
    $token = $_GET["code"];
    $user = get_user_info_object($token);
    $userData = $user->userinfo->get();
    $email = $userData["email"];
    $picture =  $userData["picture"];
    include 'profile.php';
}

Notes

README