UNPKG

@nibssplc/cams-sdk

Version:

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

19 lines (18 loc) 614 B
import { CAMSConfig } from "./types"; import { Profile } from "./validators"; /** * Generate a secure random window name to prevent targeting */ export declare const generateSecureWindowName: () => string; /** * Detect if current window is a popup to prevent recursive popups */ export declare const isPopupWindow: () => boolean; /** * Validate configuration and return parsed URL */ export declare function validateConfig(config: CAMSConfig): URL; /** * Open CAMS authentication popup and handle the authentication flow */ export declare function openCAMSPopUpLogin(config: CAMSConfig): Promise<Profile>;