@rxap/authentication 21.0.1-dev.0 → 21.0.1

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.
Files changed (72) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/compodoc/changelog.html +18 -0
  3. package/compodoc/dependencies.html +1 -1
  4. package/compodoc/directives/SignOutDirective.html +80 -163
  5. package/compodoc/injectables/AuthenticationRoutingService.html +10 -70
  6. package/compodoc/injectables/RxapAuthenticationGuard.html +13 -124
  7. package/compodoc/js/search/search_index.js +2 -2
  8. package/compodoc/properties.html +1 -1
  9. package/docs/documentation.json +330 -525
  10. package/docs/html/assets/hierarchy.js +1 -1
  11. package/docs/html/assets/search.js +1 -1
  12. package/docs/html/classes/AuthenticationRoutingService.html +2 -2
  13. package/docs/html/classes/DisabledAuthenticationService.html +2 -2
  14. package/docs/html/classes/RegisterService.html +2 -2
  15. package/docs/html/classes/RxapAuthenticationGuard.html +2 -2
  16. package/docs/html/classes/RxapAuthenticationService.html +2 -2
  17. package/docs/html/classes/SignOutDirective.html +2 -2
  18. package/docs/html/enums/AuthenticationEventType.html +2 -2
  19. package/docs/html/functions/BearerTokenInterceptor.html +1 -1
  20. package/docs/html/functions/provideAuthentication.html +1 -1
  21. package/docs/html/functions/withDisabledAuthentication.html +1 -1
  22. package/docs/html/functions/withInitialAuthenticationState.html +1 -1
  23. package/docs/html/hierarchy.html +1 -1
  24. package/docs/html/index.html +2 -2
  25. package/docs/html/interfaces/AuthenticationAccessToken.html +2 -2
  26. package/docs/html/interfaces/AuthenticationEvent.html +2 -2
  27. package/docs/html/interfaces/IAuthenticationService.html +2 -2
  28. package/docs/html/modules.html +1 -1
  29. package/docs/html/variables/RXAP_AUTHENTICATION_ACCESS_TOKEN.html +1 -1
  30. package/docs/html/variables/RXAP_AUTHENTICATION_DEACTIVATED.html +1 -1
  31. package/docs/html/variables/RXAP_INITIAL_AUTHENTICATION_STATE.html +1 -1
  32. package/docs/markdown/README.md +1 -1
  33. package/docs/markdown/classes/AuthenticationRoutingService.md +4 -18
  34. package/docs/markdown/classes/DisabledAuthenticationService.md +6 -6
  35. package/docs/markdown/classes/RegisterService.md +4 -4
  36. package/docs/markdown/classes/RxapAuthenticationGuard.md +8 -24
  37. package/docs/markdown/classes/RxapAuthenticationService.md +7 -7
  38. package/docs/markdown/classes/SignOutDirective.md +8 -16
  39. package/docs/markdown/enumerations/AuthenticationEventType.md +5 -5
  40. package/docs/markdown/functions/BearerTokenInterceptor.md +2 -2
  41. package/docs/markdown/functions/provideAuthentication.md +2 -2
  42. package/docs/markdown/functions/withDisabledAuthentication.md +2 -2
  43. package/docs/markdown/functions/withInitialAuthenticationState.md +2 -2
  44. package/docs/markdown/globals.md +2 -2
  45. package/docs/markdown/interfaces/AuthenticationAccessToken.md +4 -4
  46. package/docs/markdown/interfaces/AuthenticationEvent.md +3 -3
  47. package/docs/markdown/interfaces/IAuthenticationService.md +6 -6
  48. package/docs/markdown/variables/RXAP_AUTHENTICATION_ACCESS_TOKEN.md +2 -2
  49. package/docs/markdown/variables/RXAP_AUTHENTICATION_DEACTIVATED.md +2 -2
  50. package/docs/markdown/variables/RXAP_INITIAL_AUTHENTICATION_STATE.md +2 -2
  51. package/docs/wiki/Class.AuthenticationRoutingService.md +3 -17
  52. package/docs/wiki/Class.DisabledAuthenticationService.md +5 -5
  53. package/docs/wiki/Class.RegisterService.md +3 -3
  54. package/docs/wiki/Class.RxapAuthenticationGuard.md +7 -23
  55. package/docs/wiki/Class.RxapAuthenticationService.md +6 -6
  56. package/docs/wiki/Class.SignOutDirective.md +7 -15
  57. package/docs/wiki/Enumeration.AuthenticationEventType.md +4 -4
  58. package/docs/wiki/Function.BearerTokenInterceptor.md +1 -1
  59. package/docs/wiki/Function.provideAuthentication.md +1 -1
  60. package/docs/wiki/Function.withDisabledAuthentication.md +1 -1
  61. package/docs/wiki/Function.withInitialAuthenticationState.md +1 -1
  62. package/docs/wiki/Interface.AuthenticationAccessToken.md +3 -3
  63. package/docs/wiki/Interface.AuthenticationEvent.md +2 -2
  64. package/docs/wiki/Interface.IAuthenticationService.md +5 -5
  65. package/docs/wiki/Variable.RXAP_AUTHENTICATION_ACCESS_TOKEN.md +1 -1
  66. package/docs/wiki/Variable.RXAP_AUTHENTICATION_DEACTIVATED.md +1 -1
  67. package/docs/wiki/Variable.RXAP_INITIAL_AUTHENTICATION_STATE.md +1 -1
  68. package/docs/wiki/globals.md +1 -1
  69. package/fesm2022/rxap-authentication.mjs +23 -49
  70. package/fesm2022/rxap-authentication.mjs.map +1 -1
  71. package/package.json +3 -3
  72. package/types/rxap-authentication.d.ts +14 -16
package/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## 21.0.1 (2026-11-22)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **upgrade:** TestBed.get->inject (removed in angular) + dedupe rxjs to single version
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated utilities to 16.5.2
10
+
11
+ ### ❤️ Thank You
12
+
13
+ - Merzough Münker
14
+
15
+ ## 21.0.1-dev.1 (2026-11-22)
16
+
17
+ ### 🧱 Updated Dependencies
18
+
19
+ - Updated utilities to 16.5.2-dev.1
20
+
1
21
  ## 21.0.1-dev.0 (2026-11-20)
2
22
 
3
23
  ### 🩹 Fixes
@@ -82,6 +82,24 @@
82
82
  <div class="content getting-started">
83
83
  <div class="content-data">
84
84
 
85
+ <h2>21.0.1 (2026-11-22)</h2>
86
+ <h3>🩹 Fixes</h3>
87
+ <ul>
88
+ <li><strong>upgrade:</strong> TestBed.get-&gt;inject (removed in angular) + dedupe rxjs to single version</li>
89
+ </ul>
90
+ <h3>🧱 Updated Dependencies</h3>
91
+ <ul>
92
+ <li>Updated utilities to 16.5.2</li>
93
+ </ul>
94
+ <h3>❤️ Thank You</h3>
95
+ <ul>
96
+ <li>Merzough Münker</li>
97
+ </ul>
98
+ <h2>21.0.1-dev.1 (2026-11-22)</h2>
99
+ <h3>🧱 Updated Dependencies</h3>
100
+ <ul>
101
+ <li>Updated utilities to 16.5.2-dev.1</li>
102
+ </ul>
85
103
  <h2>21.0.1-dev.0 (2026-11-20)</h2>
86
104
  <h3>🩹 Fixes</h3>
87
105
  <ul>
@@ -119,7 +119,7 @@
119
119
  <li>
120
120
  <b>@angular/router</b> : ^21.2.9</li>
121
121
  <li>
122
- <b>@rxap/utilities</b> : ^16.5.2-dev.0</li>
122
+ <b>@rxap/utilities</b> : ^16.5.2</li>
123
123
  <li>
124
124
  <b>rxjs</b> : ^7.8.2</li>
125
125
  </ul>
@@ -147,187 +147,58 @@
147
147
  <h3 id="index">Index</h3>
148
148
  <table class="table table-sm table-bordered index-table">
149
149
  <tbody>
150
-
151
150
  <tr>
152
151
  <td class="col-md-4">
153
- <h6><b>Methods</b></h6>
152
+ <h6><b>Properties</b></h6>
154
153
  </td>
155
154
  </tr>
156
155
  <tr>
157
156
  <td class="col-md-4">
158
157
  <ul class="index-list">
159
158
  <li>
160
- <span class="modifier"></span>
161
159
  <span class="modifier">Public</span>
162
- <span class="modifier">Async</span>
163
- <a href="#onClick" >onClick</a>
164
- </li>
165
- </ul>
166
- </td>
167
- </tr>
168
-
169
-
170
- <tr>
171
- <td class="col-md-4">
172
- <h6><b>Outputs</b></h6>
173
- </td>
174
- </tr>
175
- <tr>
176
- <td class="col-md-4">
177
- <ul class="index-list">
178
- <li>
160
+ <span class="modifier">Readonly</span>
179
161
  <a href="#failure" >failure</a>
180
162
  </li>
181
163
  <li>
164
+ <span class="modifier">Public</span>
165
+ <span class="modifier">Readonly</span>
182
166
  <a href="#successful" >successful</a>
183
167
  </li>
184
168
  </ul>
185
169
  </td>
186
170
  </tr>
187
171
 
188
-
189
172
  <tr>
190
173
  <td class="col-md-4">
191
- <h6><b>HostListeners</b></h6>
174
+ <h6><b>Methods</b></h6>
192
175
  </td>
193
176
  </tr>
194
177
  <tr>
195
178
  <td class="col-md-4">
196
179
  <ul class="index-list">
197
180
  <li>
198
- <a href="#click" >click</a>
181
+ <span class="modifier">Public</span>
182
+ <span class="modifier">Async</span>
183
+ <a href="#onClick" >onClick</a>
199
184
  </li>
200
185
  </ul>
201
186
  </td>
202
187
  </tr>
203
188
 
204
- </tbody>
205
- </table>
206
- </section>
207
189
 
208
- <section data-compodoc="block-constructor">
209
- <h3 id="constructor">Constructor</h3>
210
- <table class="table table-sm table-bordered">
211
- <tbody>
212
- <tr>
213
- <td class="col-md-4">
214
- <code>constructor(auth: <a href="../injectables/RxapAuthenticationService.html" target="_self">RxapAuthenticationService</a>)</code>
215
- </td>
216
- </tr>
217
- <tr>
218
- <td class="col-md-4">
219
- <div class="io-line">Defined in <a href="" data-line="19" class="link-to-prism">src/lib/sign-out.directive.ts:19</a></div>
220
- </td>
221
- </tr>
222
-
223
- <tr>
224
- <td class="col-md-4">
225
- <div>
226
- <b>Parameters :</b>
227
- <table class="params">
228
- <thead>
229
- <tr>
230
- <td>Name</td>
231
- <td>Type</td>
232
- <td>Optional</td>
233
- </tr>
234
- </thead>
235
- <tbody>
236
- <tr>
237
- <td>auth</td>
238
-
239
- <td>
240
- <code><a href="../injectables/RxapAuthenticationService.html" target="_self" >RxapAuthenticationService</a></code>
241
- </td>
242
-
243
- <td>
244
- No
245
- </td>
246
-
247
- </tr>
248
- </tbody>
249
- </table>
250
- </div>
251
- </td>
252
- </tr>
253
- </tbody>
254
- </table>
255
- </section>
256
190
 
257
191
 
258
- <section data-compodoc="block-outputs">
259
- <h3 id="outputs">Outputs</h3>
260
- <table class="table table-sm table-bordered">
261
- <tbody>
262
- <tr>
263
- <td class="col-md-4">
264
- <a name="failure"></a>
265
- <b>failure</b>
266
- </td>
267
- </tr>
268
- <tr>
269
- <td class="col-md-4">
270
- <i>Type : </i> <code>EventEmitter</code>
271
-
272
- </td>
273
- </tr>
274
- <tr>
275
- <td class="col-md-2" colspan="2">
276
- <div class="io-line">Defined in <a href="" data-line="19" class="link-to-prism">src/lib/sign-out.directive.ts:19</a></div>
277
- </td>
278
- </tr>
279
- </tbody>
280
- </table>
281
- <table class="table table-sm table-bordered">
282
- <tbody>
283
- <tr>
284
- <td class="col-md-4">
285
- <a name="successful"></a>
286
- <b>successful</b>
287
- </td>
288
- </tr>
289
- <tr>
290
- <td class="col-md-4">
291
- <i>Type : </i> <code>EventEmitter</code>
292
192
 
293
- </td>
294
- </tr>
295
- <tr>
296
- <td class="col-md-2" colspan="2">
297
- <div class="io-line">Defined in <a href="" data-line="16" class="link-to-prism">src/lib/sign-out.directive.ts:16</a></div>
298
- </td>
299
- </tr>
300
- </tbody>
301
- </table>
193
+ </tbody>
194
+ </table>
302
195
  </section>
303
196
 
304
- <section data-compodoc="block-host-listener">
305
- <h3>HostListeners</h3> <table class="table table-sm table-bordered">
306
- <tbody>
307
- <tr>
308
- <td class="col-md-4">
309
- <a name="click"></a>
310
- <span class="name">
311
- <b>
312
- click
313
- </b>
314
- <a href="#click"><span class="icon ion-ios-link"></span></a>
315
- </span>
316
- </td>
317
- </tr>
318
197
 
319
198
 
320
- <tr>
321
- <td class="col-md-4">
322
- <div class="io-line">Defined in <a href="" data-line="25"
323
- class="link-to-prism">src/lib/sign-out.directive.ts:25</a></div>
324
- </td>
325
- </tr>
326
199
 
327
200
 
328
- </tbody>
329
- </table>
330
- </section>
201
+
331
202
  <section data-compodoc="block-methods">
332
203
 
333
204
  <h3 id="methods">
@@ -339,7 +210,6 @@
339
210
  <td class="col-md-4">
340
211
  <a name="onClick"></a>
341
212
  <span class="name">
342
- <span class="modifier"></span>
343
213
  <span class="modifier">Public</span>
344
214
  <span class="modifier">Async</span>
345
215
  <span ><b>onClick</b></span>
@@ -354,18 +224,11 @@
354
224
  </td>
355
225
  </tr>
356
226
 
357
- <tr>
358
- <td class="col-md-4">
359
- <b>Decorators : </b>
360
- <br />
361
- <code>@HostListener(&#x27;click&#x27;)<br /></code>
362
- </td>
363
- </tr>
364
227
 
365
228
  <tr>
366
229
  <td class="col-md-4">
367
- <div class="io-line">Defined in <a href="" data-line="25"
368
- class="link-to-prism">src/lib/sign-out.directive.ts:25</a></div>
230
+ <div class="io-line">Defined in <a href="" data-line="19"
231
+ class="link-to-prism">src/lib/sign-out.directive.ts:19</a></div>
369
232
  </td>
370
233
  </tr>
371
234
 
@@ -382,36 +245,90 @@
382
245
  </tbody>
383
246
  </table>
384
247
  </section>
248
+ <section data-compodoc="block-properties">
249
+
250
+ <h3 id="inputs">
251
+ Properties
252
+ </h3>
253
+ <table class="table table-sm table-bordered">
254
+ <tbody>
255
+ <tr>
256
+ <td class="col-md-4">
257
+ <a name="failure"></a>
258
+ <span class="name">
259
+ <span class="modifier">Public</span>
260
+ <span class="modifier">Readonly</span>
261
+ <span ><b>failure</b></span>
262
+ <a href="#failure"><span class="icon ion-ios-link"></span></a>
263
+ </span>
264
+ </td>
265
+ </tr>
266
+ <tr>
267
+ <td class="col-md-4">
268
+ <i>Default value : </i><code>output&lt;Error&gt;()</code>
269
+ </td>
270
+ </tr>
271
+ <tr>
272
+ <td class="col-md-4">
273
+ <div class="io-line">Defined in <a href="" data-line="17" class="link-to-prism">src/lib/sign-out.directive.ts:17</a></div>
274
+ </td>
275
+ </tr>
276
+
277
+
278
+ </tbody>
279
+ </table>
280
+ <table class="table table-sm table-bordered">
281
+ <tbody>
282
+ <tr>
283
+ <td class="col-md-4">
284
+ <a name="successful"></a>
285
+ <span class="name">
286
+ <span class="modifier">Public</span>
287
+ <span class="modifier">Readonly</span>
288
+ <span ><b>successful</b></span>
289
+ <a href="#successful"><span class="icon ion-ios-link"></span></a>
290
+ </span>
291
+ </td>
292
+ </tr>
293
+ <tr>
294
+ <td class="col-md-4">
295
+ <i>Default value : </i><code>output&lt;void&gt;()</code>
296
+ </td>
297
+ </tr>
298
+ <tr>
299
+ <td class="col-md-4">
300
+ <div class="io-line">Defined in <a href="" data-line="15" class="link-to-prism">src/lib/sign-out.directive.ts:15</a></div>
301
+ </td>
302
+ </tr>
303
+
304
+
305
+ </tbody>
306
+ </table>
307
+ </section>
385
308
 
386
309
 
387
310
  </div>
388
311
 
389
312
 
390
313
  <div class="tab-pane fade tab-source-code" id="source">
391
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
392
- Directive,
393
- EventEmitter,
394
- HostListener,
395
- Output,
396
- } from &#x27;@angular/core&#x27;;
314
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Directive, output, inject } from &#x27;@angular/core&#x27;;
397
315
  import { RxapAuthenticationService } from &#x27;./authentication.service&#x27;;
398
316
 
399
317
  @Directive({
400
318
  selector: &#x27;[rxapSignOut]&#x27;,
401
319
  standalone: true,
320
+ host: {
321
+ &#x27;(click)&#x27;: &#x27;onClick()&#x27;,
322
+ },
402
323
  })
403
324
  export class SignOutDirective {
325
+ private readonly auth &#x3D; inject(RxapAuthenticationService);
404
326
 
405
- @Output()
406
- public successful &#x3D; new EventEmitter&lt;void&gt;();
407
327
 
408
- @Output()
409
- public failure &#x3D; new EventEmitter&lt;Error&gt;();
328
+ public readonly successful &#x3D; output&lt;void&gt;();
410
329
 
411
- constructor(private readonly auth: RxapAuthenticationService) {
412
- }
330
+ public readonly failure &#x3D; output&lt;Error&gt;();
413
331
 
414
- @HostListener(&#x27;click&#x27;)
415
332
  public async onClick() {
416
333
  try {
417
334
  await this.auth.signOut();
@@ -129,69 +129,15 @@
129
129
  <tbody>
130
130
  <tr>
131
131
  <td class="col-md-4">
132
- <code>constructor(router: Router, authenticationService: <a href="../injectables/RxapAuthenticationService.html" target="_self">RxapAuthenticationService</a>, deactivated: boolean | null)</code>
132
+ <code>constructor()</code>
133
133
  </td>
134
134
  </tr>
135
135
  <tr>
136
136
  <td class="col-md-4">
137
- <div class="io-line">Defined in <a href="" data-line="14" class="link-to-prism">src/lib/authentication-routing.service.ts:14</a></div>
137
+ <div class="io-line">Defined in <a href="" data-line="13" class="link-to-prism">src/lib/authentication-routing.service.ts:13</a></div>
138
138
  </td>
139
139
  </tr>
140
140
 
141
- <tr>
142
- <td class="col-md-4">
143
- <div>
144
- <b>Parameters :</b>
145
- <table class="params">
146
- <thead>
147
- <tr>
148
- <td>Name</td>
149
- <td>Type</td>
150
- <td>Optional</td>
151
- </tr>
152
- </thead>
153
- <tbody>
154
- <tr>
155
- <td>router</td>
156
-
157
- <td>
158
- <code>Router</code>
159
- </td>
160
-
161
- <td>
162
- No
163
- </td>
164
-
165
- </tr>
166
- <tr>
167
- <td>authenticationService</td>
168
-
169
- <td>
170
- <code><a href="../injectables/RxapAuthenticationService.html" target="_self" >RxapAuthenticationService</a></code>
171
- </td>
172
-
173
- <td>
174
- No
175
- </td>
176
-
177
- </tr>
178
- <tr>
179
- <td>deactivated</td>
180
-
181
- <td>
182
- <code>boolean | null</code>
183
- </td>
184
-
185
- <td>
186
- No
187
- </td>
188
-
189
- </tr>
190
- </tbody>
191
- </table>
192
- </div>
193
- </td>
194
- </tr>
195
141
  </tbody>
196
142
  </table>
197
143
  </section>
@@ -202,11 +148,7 @@
202
148
 
203
149
 
204
150
  <div class="tab-pane fade tab-source-code" id="source">
205
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
206
- Inject,
207
- Injectable,
208
- Optional,
209
- } from &#x27;@angular/core&#x27;;
151
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Injectable, inject } from &#x27;@angular/core&#x27;;
210
152
  import { Router } from &#x27;@angular/router&#x27;;
211
153
  import { RxapAuthenticationService } from &#x27;./authentication.service&#x27;;
212
154
  import { RXAP_AUTHENTICATION_DEACTIVATED } from &#x27;./tokens&#x27;;
@@ -216,16 +158,14 @@ import { tap } from &#x27;rxjs/operators&#x27;;
216
158
  providedIn: &#x27;root&#x27;,
217
159
  })
218
160
  export class AuthenticationRoutingService {
161
+ private readonly router &#x3D; inject&lt;Router&gt;(Router);
162
+ private readonly authenticationService &#x3D; inject&lt;RxapAuthenticationService&gt;(RxapAuthenticationService);
163
+ private readonly deactivated &#x3D; inject(RXAP_AUTHENTICATION_DEACTIVATED, { optional: true }) ?? null;
164
+
165
+
166
+ constructor() {
167
+ const deactivated &#x3D; this.deactivated;
219
168
 
220
- constructor(
221
- @Inject(Router)
222
- private readonly router: Router,
223
- @Inject(RxapAuthenticationService)
224
- private readonly authenticationService: RxapAuthenticationService,
225
- @Optional()
226
- @Inject(RXAP_AUTHENTICATION_DEACTIVATED)
227
- private readonly deactivated: boolean | null &#x3D; null,
228
- ) {
229
169
  if (!deactivated) {
230
170
  console.log(&#x27;Authentication is enabled&#x27;);
231
171
  this.authenticationService.isAuthenticated$.pipe(