UNPKG

@stardyn/angular-auth

Version:

Angular Authentication Service - Lightweight, configurable authentication service for Angular applications with token management and role-based access control

18 lines (17 loc) 972 B
import { DataSource, DataSourceApi, DataSourceWithRefresh, DataSourceWithRefreshApi } from '@stardyn/angular-data-source'; import { ModuleConsoleService } from "@stardyn/angular-console"; import { XconCoreAuthConfig } from "../models/AuthConfig"; export declare class AuthDataSourceManager { private dconsole; private dataSource?; private dataSourceApi?; private dataSourceWithRefresh?; private dataSourceWithRefreshApi?; constructor(dconsole: ModuleConsoleService, dataSource?: DataSource | undefined, dataSourceApi?: DataSourceApi | undefined, dataSourceWithRefresh?: DataSourceWithRefresh | undefined, dataSourceWithRefreshApi?: DataSourceWithRefreshApi | undefined); validateDependencies(config: XconCoreAuthConfig): void; getDataSource(): DataSource | DataSourceWithRefresh; getDataSourceApi(): DataSourceApi | DataSourceWithRefreshApi; setToken(token: string): void; clearToken(): void; getDataSourceType(): string; }