@cuby-ui/core 0.0.267 → 0.0.270

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/index.d.ts CHANGED
@@ -7,3 +7,4 @@ export * from './services';
7
7
  export * from './types';
8
8
  export * from './utils';
9
9
  export * from './widgets';
10
+ export * from './providers';
@@ -0,0 +1,2 @@
1
+ import type { HttpInterceptorFn } from '@angular/common/http';
2
+ export declare const cuiAuthInterceptor: HttpInterceptorFn;
@@ -1,3 +1,4 @@
1
1
  export { cuiXNdjsonInterceptor } from './x-ndjson.interceptor';
2
2
  export { cuiLoaderInterceptor } from './loader.interceptor';
3
3
  export { cuiErrorHandlerInterceptor } from './error-handler.interceptor';
4
+ export { cuiAuthInterceptor } from './auth.interceptor';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuby-ui/core",
3
- "version": "0.0.267",
3
+ "version": "0.0.270",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",
@@ -0,0 +1,5 @@
1
+ import type { AuthConfig, OAuthModuleConfig } from 'angular-oauth2-oidc';
2
+ export interface CuiAuthConfig {
3
+ readonly authConfig: AuthConfig;
4
+ readonly moduleConfig?: OAuthModuleConfig;
5
+ }
@@ -0,0 +1,3 @@
1
+ import type { Provider } from '@angular/core';
2
+ import type { CuiAuthConfig } from './auth.options';
3
+ export declare function provideCuiAuth({ authConfig, moduleConfig }: CuiAuthConfig): Provider;
@@ -0,0 +1,2 @@
1
+ export { CuiAuthConfig } from './auth.options';
2
+ export { provideCuiAuth } from './auth.provider';
@@ -0,0 +1,9 @@
1
+ import { OAuthService } from 'angular-oauth2-oidc';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CuiAuthService extends OAuthService {
4
+ useCheckTokenFlow(): void;
5
+ checkIsTokenExpired(): boolean;
6
+ refreshTokenWithExpiredChecking(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuiAuthService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<CuiAuthService>;
9
+ }
@@ -4,3 +4,4 @@ export * from './theme.service';
4
4
  export * from './loader.options';
5
5
  export * from './loader.service';
6
6
  export * from './visual-viewport.service';
7
+ export * from './auth.service';