{"size": 199, "ext": "js", "max_stars_repo_path": "middleware/is-auth.js", "max_stars_repo_name": "paynej5504/WDD3600", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "middleware/is-auth.js", "max_issues_repo_name": "paynej5504/WDD3600", "max_issues_repo_issues_event_min_datetime": "2021-03-04T20:27:21.000Z", "max_issues_repo_issues_event_max_datetime": "2021-03-04T21:33:01.000Z", "max_forks_repo_path": "middleware/is-auth.js", "max_forks_repo_name": "paynej5504/WDD3600", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 24.875, "max_line_length": 38, "alphanum_fraction": 0.5477386935}
module.exports = (req, res, next) => {
    // if user is not logged in 
    if (!req.session.isLoggedIn) {
        // redirect to login page
        return res.redirect('/login');
    }
    next();
}