parseAccessCode(url) {
    if (url.match(/\?error=(.+)/)) {
      chrome.tabs.getCurrent(function (tab) {
        chrome.tabs.remove(tab.id, function () {});
      });
    } else {
      // eslint-disable-next-line
      this.requestToken(url.match(/\?code=([\w\/\-]+)/)[1]);
    }
  }
Parses Access Code

@param url The url containing the access code.