{"size": 338, "ext": "js", "max_stars_repo_path": "src/object/accessToken.js", "max_stars_repo_name": "rockers7414/letsauth", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/object/accessToken.js", "max_issues_repo_name": "rockers7414/letsauth", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/object/accessToken.js", "max_forks_repo_name": "rockers7414/letsauth", "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.7777777778, "max_line_length": 77, "alphanum_fraction": 0.6656804734}
'use strict';

class AccessToken {
  constructor(token, scopes, type='Bearer', expire=3600, refreshToken=null) {
    this.access_token = token;
    this.scopes = scopes;

    this.expires_in = expire;
    this.token_type = type;

    if (refreshToken) {
      this.refresh_token = refreshToken;
    }
  }
}

module.exports = AccessToken;
