{"size": 169, "ext": "js", "max_stars_repo_path": "resources/js/Middleware/RedirectIfAuth.js", "max_stars_repo_name": "hsyam/LVMA", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "resources/js/Middleware/RedirectIfAuth.js", "max_issues_repo_name": "hsyam/LVMA", "max_issues_repo_issues_event_min_datetime": "2020-07-16T22:00:01.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-17T21:42:45.000Z", "max_forks_repo_path": "resources/js/Middleware/RedirectIfAuth.js", "max_forks_repo_name": "hsyam/LVMA", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 5, "max_forks_count": null, "avg_line_length": 24.1428571429, "max_line_length": 56, "alphanum_fraction": 0.6153846154}
export default function RedirectIfAuth(to, from, next) {
    if (localStorage.getItem('token')) {
        return next({ name: "Listposts" });
    }
    return next();
}
