--- /dev/null
+<?php
+
+ $root = join(DIRECTORY_SEPARATOR, array($_SERVER['DOCUMENT_ROOT'], ".."));
+ $lib_root = join(DIRECTORY_SEPARATOR, array($root, "lib"));
+ require_once(join(DIRECTORY_SEPARATOR, array($root, "vendor", "autoload.php")));
+ include_once(join(DIRECTORY_SEPARATOR, array($lib_root, "auth0.php")));
+
+ if (isset($_GET['code'])) {
+ try {
+ $auth0->getUser();
+ header("Location: https://" . $_SERVER['HTTP_HOST'] . "/");
+ exit;
+ }
+ catch (\Exception $e) {
+ }
+ }
+
+?>