@nauth-toolkit/client-angular 0.1.55 → 0.1.56

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nauth-toolkit/client-angular",
3
- "version": "0.1.55",
3
+ "version": "0.1.56",
4
4
  "description": "Angular adapter for nauth-toolkit client SDK",
5
5
  "keywords": [
6
6
  "nauth",
@@ -24,7 +24,7 @@
24
24
  "peerDependencies": {
25
25
  "@angular/common": ">=17.0.0",
26
26
  "@angular/core": ">=17.0.0",
27
- "@nauth-toolkit/client": "^0.1.55",
27
+ "@nauth-toolkit/client": "^0.1.56",
28
28
  "rxjs": "^7.0.0 || ^8.0.0"
29
29
  },
30
30
  "dependencies": {
@@ -38,17 +38,17 @@ function getCsrfToken(cookieName: string): string | null {
38
38
  * ```typescript
39
39
  * // app.module.ts
40
40
  * import { HTTP_INTERCEPTORS } from '@angular/common/http';
41
- * import { AuthInterceptor } from '@nauth-toolkit/client-angular';
41
+ * import { AuthInterceptorClass } from '@nauth-toolkit/client-angular';
42
42
  *
43
43
  * @NgModule({
44
44
  * providers: [
45
- * { provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true }
45
+ * { provide: HTTP_INTERCEPTORS, useClass: AuthInterceptorClass, multi: true }
46
46
  * ]
47
47
  * })
48
48
  * ```
49
49
  */
50
50
  @Injectable()
51
- export class AuthInterceptor implements HttpInterceptor {
51
+ export class AuthInterceptorClass implements HttpInterceptor {
52
52
  constructor(
53
53
  @Inject(NAUTH_CLIENT_CONFIG) private readonly config: NAuthClientConfig,
54
54
  private readonly http: HttpClient,
@@ -3,7 +3,7 @@ import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
3
3
  import { NAUTH_CLIENT_CONFIG } from './tokens';
4
4
  import { AuthService } from './auth.service';
5
5
  import { AngularHttpAdapter } from './http-adapter';
6
- import { AuthInterceptor } from './auth.interceptor.class';
6
+ import { AuthInterceptorClass } from './auth.interceptor.class';
7
7
  import { NAuthClientConfig } from '@nauth-toolkit/client';
8
8
 
9
9
  /**
@@ -50,7 +50,7 @@ export class NAuthModule {
50
50
  },
51
51
  {
52
52
  provide: HTTP_INTERCEPTORS,
53
- useClass: AuthInterceptor,
53
+ useClass: AuthInterceptorClass,
54
54
  multi: true,
55
55
  },
56
56
  ],