message: avoid store discovery service information
diff: @@ -130,12 +130,6 @@ export class Oauth2Auth extends AlfrescoApiClient {
  discoveryUrls() {
  return new Promise((resolve, reject) => {
  - let discoveryStore = this.storage.getItem('discovery');
  - if (discoveryStore) {
  - this.discovery = JSON.parse(discoveryStore);
  - }
  -
  - if (!this.discovery) {
  let postBody = {}, pathParams = {}, queryParams = {}, formParams = {}, headerParams = {};
  let contentTypes = ['application/json'];
  let accepts = ['application/json'];
  @@ -164,10 +158,6 @@ export class Oauth2Auth extends AlfrescoApiClient {
  this.storage.removeItem('discovery');
  reject(error.error);
  });
  - } else {
  - this.emit('discovery', this.discovery);
  - resolve(this.discovery);
  - }
  });
  }
  @@ -605,7 +595,7 @@ export class Oauth2Auth extends AlfrescoApiClient {
  resolve(data);
  },
  (error) => {
  - if (error.error.status === 401) {
  + if (error.error && error.error.status === 401) {
  this.emit('unauthorized');
  }
  this.emit('error');
  