@infosel-sdk/core
Version:
Core SDK for Infosel financial services platform. Provides essential infrastructure for authentication, HTTP/GraphQL communication, storage management, and error handling.
21 lines (20 loc) • 612 B
TypeScript
import Token from '../entities/token';
export type Environment = 'qa' | 'prod';
export type AuthType = 'key-cloak' | 'existing-token';
export interface AuthCredentials {
readonly grant_type: string;
readonly client_id: string;
readonly client_secret: string;
}
export interface AuthConfiguration {
readonly type: AuthType;
readonly realm: string;
readonly environment: Environment;
readonly clientId?: string;
readonly credentials?: AuthCredentials;
readonly token?: Token;
}
export interface ValidationResult {
readonly isValid: boolean;
readonly errors: string[];
}