{"size": 286, "ext": "js", "max_stars_repo_path": "src/_helpers/auth-header.js", "max_stars_repo_name": "rjvanvoorhis/photomosaic-fe-v2", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/_helpers/auth-header.js", "max_issues_repo_name": "rjvanvoorhis/photomosaic-fe-v2", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/_helpers/auth-header.js", "max_forks_repo_name": "rjvanvoorhis/photomosaic-fe-v2", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.0, "max_line_length": 62, "alphanum_fraction": 0.6328671329}
export function authHeader() {
    // return authorization header with basic auth credentials
    let user = JSON.parse(localStorage.getItem('user'));

    if (user && user.Authorization) {
        return { 'Authorization': user.Authorization };
    } else {
        return {};
    }
}
