} else {
                    if (options.onLogout && typeof options.onLogout === 'function') {
                        options.onLogout(req, res, next);
                    } else {
                        res.send({