{"size": 569, "ext": "js", "max_stars_repo_path": "fyp_1/src/components/USERSESSION.js", "max_stars_repo_name": "kin9787/Final-Year-Project-2021", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "fyp_1/src/components/USERSESSION.js", "max_issues_repo_name": "kin9787/Final-Year-Project-2021", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "fyp_1/src/components/USERSESSION.js", "max_forks_repo_name": "kin9787/Final-Year-Project-2021", "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": 18.3548387097, "max_line_length": 35, "alphanum_fraction": 0.4762741652}
//user cookie storage
var UserProfile = (function() {
    var username = "";
    var loginKey = "";
  
    var getName = function() {
      return username;    
    };

    var getKey = function() {
        return loginKey;    
      };
  
    var setName = function(name) {
        username = name;     
    }
    var setKey = function(key) {
        loginKey = key; 
      
    };
  
    return {
      getName: getName,
      setName: setName,
      getKey: getKey,
      setKey: setKey
    }
  
  })();
  
  export default UserProfile;