$error = 'Code defined, but no state.  Condition shouldn\'t exist.';
        throw new Exception($error);
    }
}
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
    /*
     * User information should be set in the session via auth_handler.php
     */
    if (isset($_SESSION['userInfo'])) {
        $userInfo = $_SESSION['userInfo'];
        /*
         * Retrieve the user's picture from UserInfo.  Google allows
         * adding an imgmax query param to the picture to get a max
         * size (any any dimension) of the indicated size.  Reduces
         * bandwidth and improves rendering time.
         */
        if ($userInfo->picture == null) {
            $userPicture = null;
        } else {
            $userPicture = $userInfo->picture . '?imgmax=50';
        }
        $userName = $userInfo->given_name;
        $alertModalText = $authHandler->GetAlertModalText();
        include 'output_editor.php';
    } else {
        /*
         * User came direct to app, redirect for oauth
         */
        header('Location: ' . Config::FULL_AUTH_URL);
    }
}