witspry-auth-ng-client 1.2.0 → 1.3.0

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.
package/README.md CHANGED
@@ -303,4 +303,7 @@ MIT License - see LICENSE file for details.
303
303
  - Fixed the logoutRedirectRoute issue
304
304
 
305
305
  ### 1.2.0
306
- - Automatic token refresh with intervals based on access token expiry
306
+ - Automatic token refresh with intervals based on access token expiry
307
+
308
+ ### 1.3.0
309
+ - Updated Angular dependencies to Angular v21
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, PLATFORM_ID, Injectable, Inject, signal, inject, Component, makeEnvironmentProviders, NgModule } from '@angular/core';
2
+ import { InjectionToken, PLATFORM_ID, Inject, Injectable, signal, inject, Component, makeEnvironmentProviders, NgModule } from '@angular/core';
3
3
  import * as i3 from '@angular/common';
4
4
  import { isPlatformBrowser, CommonModule } from '@angular/common';
5
5
  import { BehaviorSubject, throwError } from 'rxjs';
@@ -29,6 +29,16 @@ const OAUTH2_STORAGE_KEYS = {
29
29
  */
30
30
  const OAUTH2_CONFIG_TOKEN = new InjectionToken('OAUTH2_CONFIG');
31
31
 
32
+ var AppResponseType;
33
+ (function (AppResponseType) {
34
+ AppResponseType[AppResponseType["None"] = 0] = "None";
35
+ AppResponseType[AppResponseType["Debug"] = 1] = "Debug";
36
+ AppResponseType[AppResponseType["Success"] = 2] = "Success";
37
+ AppResponseType[AppResponseType["Error"] = 3] = "Error";
38
+ AppResponseType[AppResponseType["Warning"] = 4] = "Warning";
39
+ AppResponseType[AppResponseType["Info"] = 5] = "Info";
40
+ })(AppResponseType || (AppResponseType = {}));
41
+
32
42
  /**
33
43
  * OAuth2 Storage Service
34
44
  * Handles secure storage and retrieval of OAuth2 tokens and data
@@ -221,10 +231,10 @@ class OAuth2StorageService {
221
231
  console.error(`[OAuth2StorageService] ${message}`, error);
222
232
  }
223
233
  }
224
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OAuth2StorageService, deps: [{ token: OAUTH2_CONFIG_TOKEN }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
225
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OAuth2StorageService, providedIn: 'root' });
234
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: OAuth2StorageService, deps: [{ token: OAUTH2_CONFIG_TOKEN }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
235
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: OAuth2StorageService, providedIn: 'root' });
226
236
  }
227
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OAuth2StorageService, decorators: [{
237
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: OAuth2StorageService, decorators: [{
228
238
  type: Injectable,
229
239
  args: [{
230
240
  providedIn: 'root'
@@ -250,7 +260,7 @@ class OAuth2Service {
250
260
  _authState = signal({
251
261
  isAuthenticated: false,
252
262
  isLoading: false
253
- });
263
+ }, { ...(ngDevMode ? { debugName: "_authState" } : {}) });
254
264
  _authStateSubject = new BehaviorSubject({
255
265
  isAuthenticated: false,
256
266
  isLoading: false
@@ -486,6 +496,26 @@ class OAuth2Service {
486
496
  await this.handleTokenResponse(tokens);
487
497
  return;
488
498
  }
499
+ if (this.config.oAuthProvider === 'witsauth') {
500
+ // Handle WitsAuth specific logic
501
+ const witsAuthAppResponse = this.getWitsAuthMessageFromCallback();
502
+ this.logInfo('WitsAuth message from callback:', witsAuthAppResponse);
503
+ switch (witsAuthAppResponse.appResponseType) {
504
+ case '2':
505
+ this.logInfo('WitsAuth app response type 2:', witsAuthAppResponse.message);
506
+ break;
507
+ case '3':
508
+ this.logInfo('WitsAuth app response type 3:', witsAuthAppResponse.message);
509
+ throw new Error(`Error: ${witsAuthAppResponse.message}`);
510
+ break;
511
+ case '4':
512
+ this.logInfo('WitsAuth app response type 4:', witsAuthAppResponse.message);
513
+ break;
514
+ default:
515
+ this.logWarn('Unknown WitsAuth app response type:', witsAuthAppResponse.appResponseType);
516
+ }
517
+ return;
518
+ }
489
519
  throw new Error('No authorization code or tokens found in callback');
490
520
  }
491
521
  catch (error) {
@@ -498,6 +528,26 @@ class OAuth2Service {
498
528
  throw error;
499
529
  }
500
530
  }
531
+ getWitsAuthResponse() {
532
+ const witsAuthAppResponse = this.getWitsAuthMessageFromCallback();
533
+ const applicableCodes = [
534
+ "409778fc-6ced-4de0-935a-fc1afdd20b7b", //RegistrationSuccess
535
+ "2bbcc634-96f9-4e99-832d-fb84c9139a14", //PasswordResetEmailSent
536
+ "6ae5ba7f-f6ae-44ec-9130-685b8810fae8" //UnlockEmailSent
537
+ ];
538
+ if (witsAuthAppResponse.appResponseType === AppResponseType.Success.toString()
539
+ && witsAuthAppResponse.code
540
+ && applicableCodes.includes(witsAuthAppResponse.code)) {
541
+ return {
542
+ isApplicable: true,
543
+ message: witsAuthAppResponse.message
544
+ };
545
+ }
546
+ return {
547
+ isApplicable: false,
548
+ message: ''
549
+ };
550
+ }
501
551
  /**
502
552
  * Extract error from callback URL
503
553
  */
@@ -515,6 +565,25 @@ class OAuth2Service {
515
565
  }
516
566
  return null;
517
567
  }
568
+ getWitsAuthMessageFromCallback() {
569
+ const urlParams = new URLSearchParams(window.location.search);
570
+ const hashParams = new URLSearchParams(window.location.hash.substring(1));
571
+ const appResponseType = urlParams.get('appResponseType') || hashParams.get('appResponseType');
572
+ if (appResponseType === AppResponseType.Success.toString()) {
573
+ const message = urlParams.get('appMessage') || hashParams.get('appMessage');
574
+ const code = urlParams.get('appMessageCode') || hashParams.get('appMessageCode');
575
+ return {
576
+ appResponseType,
577
+ code: decodeURIComponent(code || ''),
578
+ message: decodeURIComponent(message || '')
579
+ };
580
+ }
581
+ return {
582
+ appResponseType: '',
583
+ code: '',
584
+ message: ''
585
+ };
586
+ }
518
587
  /**
519
588
  * Extract authorization code from query parameters
520
589
  */
@@ -1033,10 +1102,10 @@ class OAuth2Service {
1033
1102
  ngOnDestroy() {
1034
1103
  this.clearAutoRefreshTimer();
1035
1104
  }
1036
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OAuth2Service, deps: [{ token: OAUTH2_CONFIG_TOKEN }, { token: PLATFORM_ID }, { token: i1.HttpClient }, { token: i2.Router }, { token: OAuth2StorageService }], target: i0.ɵɵFactoryTarget.Injectable });
1037
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OAuth2Service, providedIn: 'root' });
1105
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: OAuth2Service, deps: [{ token: OAUTH2_CONFIG_TOKEN }, { token: PLATFORM_ID }, { token: i1.HttpClient }, { token: i2.Router }, { token: OAuth2StorageService }], target: i0.ɵɵFactoryTarget.Injectable });
1106
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: OAuth2Service, providedIn: 'root' });
1038
1107
  }
1039
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OAuth2Service, decorators: [{
1108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: OAuth2Service, decorators: [{
1040
1109
  type: Injectable,
1041
1110
  args: [{
1042
1111
  providedIn: 'root'
@@ -1245,6 +1314,8 @@ class OAuth2CallbackComponent {
1245
1314
  isLoading = true;
1246
1315
  error = null;
1247
1316
  success = false;
1317
+ isWitsAuthMessageApplicable = false;
1318
+ witsAuthMessage = null;
1248
1319
  constructor(oauth2Service, router, platformId, config) {
1249
1320
  this.oauth2Service = oauth2Service;
1250
1321
  this.router = router;
@@ -1264,6 +1335,22 @@ class OAuth2CallbackComponent {
1264
1335
  console.log('Starting OAuth2 callback processing...');
1265
1336
  console.log('Current URL:', window.location.href);
1266
1337
  console.log('LocalStorage available:', typeof (Storage) !== "undefined");
1338
+ // Handle WithsAuth specific response
1339
+ if (this.config.oAuthProvider === 'witsauth') {
1340
+ const witsAuthResponse = this.oauth2Service.getWitsAuthResponse();
1341
+ if (witsAuthResponse.isApplicable) {
1342
+ this.isLoading = false;
1343
+ this.success = true;
1344
+ this.error = null; // Clear any previous error
1345
+ this.isWitsAuthMessageApplicable = true;
1346
+ this.witsAuthMessage = witsAuthResponse.message;
1347
+ console.log('WitsAuth message:', this.witsAuthMessage);
1348
+ return;
1349
+ }
1350
+ else {
1351
+ console.warn('WitsAuth response not applicable');
1352
+ }
1353
+ }
1267
1354
  // Handle the OAuth2 callback
1268
1355
  await this.oauth2Service.handleCallback();
1269
1356
  // Success
@@ -1303,8 +1390,8 @@ class OAuth2CallbackComponent {
1303
1390
  const redirectRoute = this.config.redirectRoute || '/';
1304
1391
  this.router.navigate([redirectRoute]);
1305
1392
  }
1306
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OAuth2CallbackComponent, deps: [{ token: OAuth2Service }, { token: i2.Router }, { token: PLATFORM_ID }, { token: OAUTH2_CONFIG_TOKEN }], target: i0.ɵɵFactoryTarget.Component });
1307
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: OAuth2CallbackComponent, isStandalone: true, selector: "lib-oauth2-callback", ngImport: i0, template: `
1393
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: OAuth2CallbackComponent, deps: [{ token: OAuth2Service }, { token: i2.Router }, { token: PLATFORM_ID }, { token: OAUTH2_CONFIG_TOKEN }], target: i0.ɵɵFactoryTarget.Component });
1394
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.2", type: OAuth2CallbackComponent, isStandalone: true, selector: "lib-oauth2-callback", ngImport: i0, template: `
1308
1395
  <div class="oauth2-callback-container">
1309
1396
  <div class="oauth2-callback-content">
1310
1397
  <div *ngIf="isLoading" class="loading-section">
@@ -1315,8 +1402,18 @@ class OAuth2CallbackComponent {
1315
1402
 
1316
1403
  <div *ngIf="success && !isLoading" class="success-section">
1317
1404
  <div class="success-icon">✓</div>
1318
- <h2>Authentication Successful!</h2>
1319
- <p>You will be redirected shortly...</p>
1405
+
1406
+ <div *ngIf="isWitsAuthMessageApplicable" class="witsauth-message">
1407
+ <p style="padding-bottom:10px;"><strong>{{ witsAuthMessage }}</strong></p>
1408
+ <button (click)="goHome()" class="home-button">
1409
+ Go Home
1410
+ </button>
1411
+ </div>
1412
+ <div *ngIf="!isWitsAuthMessageApplicable" class="witsauth-message">
1413
+ <h2>Authentication Successful!</h2>
1414
+ <p>You will be redirected shortly...</p>
1415
+ </div>
1416
+
1320
1417
  </div>
1321
1418
 
1322
1419
  <div *ngIf="!!error && !isLoading && !success" class="error-section">
@@ -1334,9 +1431,9 @@ class OAuth2CallbackComponent {
1334
1431
  </div>
1335
1432
  </div>
1336
1433
  </div>
1337
- `, isInline: true, styles: [".oauth2-callback-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background-color:#f5f5f5;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.oauth2-callback-content{background:#fff;border-radius:8px;padding:2rem;box-shadow:0 4px 6px #0000001a;text-align:center;max-width:400px;width:100%;margin:1rem}.loading-section h2,.success-section h2,.error-section h2{margin:1rem 0 .5rem;color:#333}.loading-section p,.success-section p{color:#666;margin-bottom:0}.spinner{border:3px solid #f3f3f3;border-top:3px solid #007bff;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite;margin:0 auto 1rem}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.success-icon{width:60px;height:60px;border-radius:50%;background-color:#28a745;color:#fff;display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:700;margin:0 auto 1rem}.error-icon{width:60px;height:60px;border-radius:50%;background-color:#dc3545;color:#fff;display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:700;margin:0 auto 1rem}.error-message{color:#dc3545;margin:1rem 0;padding:.5rem;background-color:#f8d7da;border:1px solid #f5c6cb;border-radius:4px;font-size:.9rem}.error-actions{display:flex;gap:1rem;justify-content:center;margin-top:1.5rem}.retry-button,.home-button{padding:.75rem 1.5rem;border:none;border-radius:4px;cursor:pointer;font-size:.9rem;font-weight:500;transition:background-color .2s}.retry-button{background-color:#007bff;color:#fff}.retry-button:hover{background-color:#0056b3}.home-button{background-color:#6c757d;color:#fff}.home-button:hover{background-color:#545b62}@media (max-width: 480px){.oauth2-callback-content{margin:.5rem;padding:1.5rem}.error-actions{flex-direction:column}.retry-button,.home-button{width:100%}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1434
+ `, isInline: true, styles: [".oauth2-callback-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background-color:#f5f5f5;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.oauth2-callback-content{background:#fff;border-radius:8px;padding:2rem;box-shadow:0 4px 6px #0000001a;text-align:center;max-width:400px;width:100%;margin:1rem}.loading-section h2,.success-section h2,.error-section h2{margin:1rem 0 .5rem;color:#333}.loading-section p,.success-section p{color:#666;margin-bottom:0}.spinner{border:3px solid #f3f3f3;border-top:3px solid #007bff;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite;margin:0 auto 1rem}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.success-icon{width:60px;height:60px;border-radius:50%;background-color:#28a745;color:#fff;display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:700;margin:0 auto 1rem}.error-icon{width:60px;height:60px;border-radius:50%;background-color:#dc3545;color:#fff;display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:700;margin:0 auto 1rem}.error-message{color:#dc3545;margin:1rem 0;padding:.5rem;background-color:#f8d7da;border:1px solid #f5c6cb;border-radius:4px;font-size:.9rem}.error-actions{display:flex;gap:1rem;justify-content:center;margin-top:1.5rem}.retry-button,.home-button{padding:.75rem 1.5rem;border:none;border-radius:4px;cursor:pointer;font-size:.9rem;font-weight:500;transition:background-color .2s}.retry-button{background-color:#007bff;color:#fff}.retry-button:hover{background-color:#0056b3}.home-button{background-color:#6c757d;color:#fff}.home-button:hover{background-color:#545b62}@media(max-width:480px){.oauth2-callback-content{margin:.5rem;padding:1.5rem}.error-actions{flex-direction:column}.retry-button,.home-button{width:100%}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1338
1435
  }
1339
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OAuth2CallbackComponent, decorators: [{
1436
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: OAuth2CallbackComponent, decorators: [{
1340
1437
  type: Component,
1341
1438
  args: [{ selector: 'lib-oauth2-callback', standalone: true, imports: [CommonModule], template: `
1342
1439
  <div class="oauth2-callback-container">
@@ -1349,8 +1446,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
1349
1446
 
1350
1447
  <div *ngIf="success && !isLoading" class="success-section">
1351
1448
  <div class="success-icon">✓</div>
1352
- <h2>Authentication Successful!</h2>
1353
- <p>You will be redirected shortly...</p>
1449
+
1450
+ <div *ngIf="isWitsAuthMessageApplicable" class="witsauth-message">
1451
+ <p style="padding-bottom:10px;"><strong>{{ witsAuthMessage }}</strong></p>
1452
+ <button (click)="goHome()" class="home-button">
1453
+ Go Home
1454
+ </button>
1455
+ </div>
1456
+ <div *ngIf="!isWitsAuthMessageApplicable" class="witsauth-message">
1457
+ <h2>Authentication Successful!</h2>
1458
+ <p>You will be redirected shortly...</p>
1459
+ </div>
1460
+
1354
1461
  </div>
1355
1462
 
1356
1463
  <div *ngIf="!!error && !isLoading && !success" class="error-section">
@@ -1368,7 +1475,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
1368
1475
  </div>
1369
1476
  </div>
1370
1477
  </div>
1371
- `, styles: [".oauth2-callback-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background-color:#f5f5f5;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.oauth2-callback-content{background:#fff;border-radius:8px;padding:2rem;box-shadow:0 4px 6px #0000001a;text-align:center;max-width:400px;width:100%;margin:1rem}.loading-section h2,.success-section h2,.error-section h2{margin:1rem 0 .5rem;color:#333}.loading-section p,.success-section p{color:#666;margin-bottom:0}.spinner{border:3px solid #f3f3f3;border-top:3px solid #007bff;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite;margin:0 auto 1rem}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.success-icon{width:60px;height:60px;border-radius:50%;background-color:#28a745;color:#fff;display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:700;margin:0 auto 1rem}.error-icon{width:60px;height:60px;border-radius:50%;background-color:#dc3545;color:#fff;display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:700;margin:0 auto 1rem}.error-message{color:#dc3545;margin:1rem 0;padding:.5rem;background-color:#f8d7da;border:1px solid #f5c6cb;border-radius:4px;font-size:.9rem}.error-actions{display:flex;gap:1rem;justify-content:center;margin-top:1.5rem}.retry-button,.home-button{padding:.75rem 1.5rem;border:none;border-radius:4px;cursor:pointer;font-size:.9rem;font-weight:500;transition:background-color .2s}.retry-button{background-color:#007bff;color:#fff}.retry-button:hover{background-color:#0056b3}.home-button{background-color:#6c757d;color:#fff}.home-button:hover{background-color:#545b62}@media (max-width: 480px){.oauth2-callback-content{margin:.5rem;padding:1.5rem}.error-actions{flex-direction:column}.retry-button,.home-button{width:100%}}\n"] }]
1478
+ `, styles: [".oauth2-callback-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background-color:#f5f5f5;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.oauth2-callback-content{background:#fff;border-radius:8px;padding:2rem;box-shadow:0 4px 6px #0000001a;text-align:center;max-width:400px;width:100%;margin:1rem}.loading-section h2,.success-section h2,.error-section h2{margin:1rem 0 .5rem;color:#333}.loading-section p,.success-section p{color:#666;margin-bottom:0}.spinner{border:3px solid #f3f3f3;border-top:3px solid #007bff;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite;margin:0 auto 1rem}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.success-icon{width:60px;height:60px;border-radius:50%;background-color:#28a745;color:#fff;display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:700;margin:0 auto 1rem}.error-icon{width:60px;height:60px;border-radius:50%;background-color:#dc3545;color:#fff;display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:700;margin:0 auto 1rem}.error-message{color:#dc3545;margin:1rem 0;padding:.5rem;background-color:#f8d7da;border:1px solid #f5c6cb;border-radius:4px;font-size:.9rem}.error-actions{display:flex;gap:1rem;justify-content:center;margin-top:1.5rem}.retry-button,.home-button{padding:.75rem 1.5rem;border:none;border-radius:4px;cursor:pointer;font-size:.9rem;font-weight:500;transition:background-color .2s}.retry-button{background-color:#007bff;color:#fff}.retry-button:hover{background-color:#0056b3}.home-button{background-color:#6c757d;color:#fff}.home-button:hover{background-color:#545b62}@media(max-width:480px){.oauth2-callback-content{margin:.5rem;padding:1.5rem}.error-actions{flex-direction:column}.retry-button,.home-button{width:100%}}\n"] }]
1372
1479
  }], ctorParameters: () => [{ type: OAuth2Service }, { type: i2.Router }, { type: Object, decorators: [{
1373
1480
  type: Inject,
1374
1481
  args: [PLATFORM_ID]
@@ -1570,11 +1677,11 @@ class NgOAuth2PkceModule {
1570
1677
  ]
1571
1678
  };
1572
1679
  }
1573
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NgOAuth2PkceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1574
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: NgOAuth2PkceModule, imports: [CommonModule] });
1575
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NgOAuth2PkceModule, imports: [CommonModule] });
1680
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: NgOAuth2PkceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1681
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.2", ngImport: i0, type: NgOAuth2PkceModule, imports: [CommonModule] });
1682
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: NgOAuth2PkceModule, imports: [CommonModule] });
1576
1683
  }
1577
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NgOAuth2PkceModule, decorators: [{
1684
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: NgOAuth2PkceModule, decorators: [{
1578
1685
  type: NgModule,
1579
1686
  args: [{
1580
1687
  imports: [CommonModule],