@ezeep/ezeep-js 1.0.178 → 1.0.179

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33197,10 +33197,10 @@ let EzpPrinting = class {
33197
33197
  }
33198
33198
  }
33199
33199
  async getAuthUri() {
33200
- const authService = new EzpAuthorizationService(this.redirecturi, this.clientid);
33201
- authService.generateCodeVerifier();
33202
- await authService.generateCodeChallenge(authStore.state.codeVerifier);
33203
- authService.buildAuthURI();
33200
+ this.auth = new EzpAuthorizationService(this.redirecturi, this.clientid);
33201
+ this.auth.generateCodeVerifier();
33202
+ await this.auth.generateCodeChallenge(authStore.state.codeVerifier);
33203
+ this.auth.buildAuthURI();
33204
33204
  return authStore.state.authUri;
33205
33205
  }
33206
33206
  checkAuth() {
@@ -33255,6 +33255,9 @@ let EzpPrinting = class {
33255
33255
  else {
33256
33256
  printStore.state.printApiHostUrl = config.printingApiHostUrl;
33257
33257
  }
33258
+ if (this.code) {
33259
+ this.auth.getAccessToken();
33260
+ }
33258
33261
  sendCodeToParentWindow();
33259
33262
  initi18n(this.language);
33260
33263
  this.checkAuth();
@@ -110,10 +110,10 @@ export class EzpPrinting {
110
110
  }
111
111
  }
112
112
  async getAuthUri() {
113
- const authService = new EzpAuthorizationService(this.redirecturi, this.clientid);
114
- authService.generateCodeVerifier();
115
- await authService.generateCodeChallenge(authStore.state.codeVerifier);
116
- authService.buildAuthURI();
113
+ this.auth = new EzpAuthorizationService(this.redirecturi, this.clientid);
114
+ this.auth.generateCodeVerifier();
115
+ await this.auth.generateCodeChallenge(authStore.state.codeVerifier);
116
+ this.auth.buildAuthURI();
117
117
  return authStore.state.authUri;
118
118
  }
119
119
  checkAuth() {
@@ -168,6 +168,9 @@ export class EzpPrinting {
168
168
  else {
169
169
  printStore.state.printApiHostUrl = config.printingApiHostUrl;
170
170
  }
171
+ if (this.code) {
172
+ this.auth.getAccessToken();
173
+ }
171
174
  sendCodeToParentWindow();
172
175
  initi18n(this.language);
173
176
  this.checkAuth();
@@ -33222,10 +33222,10 @@ let EzpPrinting$1 = class extends HTMLElement {
33222
33222
  }
33223
33223
  }
33224
33224
  async getAuthUri() {
33225
- const authService = new EzpAuthorizationService(this.redirecturi, this.clientid);
33226
- authService.generateCodeVerifier();
33227
- await authService.generateCodeChallenge(authStore.state.codeVerifier);
33228
- authService.buildAuthURI();
33225
+ this.auth = new EzpAuthorizationService(this.redirecturi, this.clientid);
33226
+ this.auth.generateCodeVerifier();
33227
+ await this.auth.generateCodeChallenge(authStore.state.codeVerifier);
33228
+ this.auth.buildAuthURI();
33229
33229
  return authStore.state.authUri;
33230
33230
  }
33231
33231
  checkAuth() {
@@ -33280,6 +33280,9 @@ let EzpPrinting$1 = class extends HTMLElement {
33280
33280
  else {
33281
33281
  printStore.state.printApiHostUrl = config.printingApiHostUrl;
33282
33282
  }
33283
+ if (this.code) {
33284
+ this.auth.getAccessToken();
33285
+ }
33283
33286
  sendCodeToParentWindow();
33284
33287
  initi18n(this.language);
33285
33288
  this.checkAuth();
@@ -33193,10 +33193,10 @@ let EzpPrinting = class {
33193
33193
  }
33194
33194
  }
33195
33195
  async getAuthUri() {
33196
- const authService = new EzpAuthorizationService(this.redirecturi, this.clientid);
33197
- authService.generateCodeVerifier();
33198
- await authService.generateCodeChallenge(authStore.state.codeVerifier);
33199
- authService.buildAuthURI();
33196
+ this.auth = new EzpAuthorizationService(this.redirecturi, this.clientid);
33197
+ this.auth.generateCodeVerifier();
33198
+ await this.auth.generateCodeChallenge(authStore.state.codeVerifier);
33199
+ this.auth.buildAuthURI();
33200
33200
  return authStore.state.authUri;
33201
33201
  }
33202
33202
  checkAuth() {
@@ -33251,6 +33251,9 @@ let EzpPrinting = class {
33251
33251
  else {
33252
33252
  printStore.state.printApiHostUrl = config.printingApiHostUrl;
33253
33253
  }
33254
+ if (this.code) {
33255
+ this.auth.getAccessToken();
33256
+ }
33254
33257
  sendCodeToParentWindow();
33255
33258
  initi18n(this.language);
33256
33259
  this.checkAuth();