// Functions --------------------------------------------------------------------------------------
        // ------------------------------------------------------------------------------------------------

        int Authenticate()
        {
            // Get Token from Cookies
            string key   = "token";
            string value = Request.Cookies[key];

            // return the userID if authorized else return -1
            return(AuthToken.Authorization(value));
        }