UNPKG

deepvue-aadhaar-ekyc-digilocker-switch

Version:

A SDK powered by DeepVue.Tech for Aadhaar eKYC and DigiLocker authentication flows

34 lines (28 loc) 936 B
import React from 'react'; type FlowType = 'aadhaar' | 'digilocker' | null; interface BaseProps { apiKey: string; clientId: string; redirectUrl: string; } interface AadhaarFlowProps extends BaseProps { generatePdf: boolean; onBack: () => void; companyName: string; purpose: string; } interface DigiLockerFlowProps extends BaseProps { autoProcessCallback?: boolean; } interface FlowSelectorProps { apiKey: string; clientId: string; onSelectAadhaar: () => void; onSelectDigiLocker: () => void; onAutoSelectDigiLocker: () => void; autoDetectCallback?: boolean; } declare const FlowSelector: React.FC<FlowSelectorProps>; declare const AadhaarFlow: React.FC<AadhaarFlowProps>; declare const DigiLockerFlow: React.FC<DigiLockerFlowProps>; export { AadhaarFlow, type AadhaarFlowProps, DigiLockerFlow, type DigiLockerFlowProps, FlowSelector, type FlowSelectorProps, type FlowType };