Redirect URI/Login Authentication

In your auth.php, I would suggest on line 7 in your if statement using:

if(isset($_GET['code']))

instead of:

if($_GET['code'])

because it will throw:

Notice: Undefined index: code in [path/to/php/file] on line [num]

@BarryCarlyon