UNPKG

@nibssplc/cams-sdk

Version:

Central Authentication Management Service (CAMS) SDK for popup-based authentication with Azure AD + custom 2FA

26 lines (25 loc) 733 B
export interface CAMSConfig { camsUrl: string; messageOrigin: string; allowedRedirectDomains?: string[]; windowWidth: number; windowHeight: number; authTimeout?: number; idleTimeout?: number; storageKey?: string; retryAttempts?: number; debug?: boolean; } export declare enum CAMSErrorType { POPUP_BLOCKED = "POPUP_BLOCKED", TIMEOUT = "TIMEOUT", INVALID_ORIGIN = "INVALID_ORIGIN", USER_CANCELLED = "USER_CANCELLED", INVALID_URL = "INVALID_URL", MAX_RETRIES_EXCEEDED = "MAX_RETRIES_EXCEEDED", API_VALIDATION_ERROR = "VALIDATION_ERROR" } export declare class CAMSError extends Error { type: CAMSErrorType; constructor(type: CAMSErrorType, message: string); }