@criipto/verify-react
Version:
Verify SDK for React Single Page Applications
30 lines (29 loc) • 937 B
TypeScript
import { OAuth2Error } from '@criipto/auth-js';
import React from 'react';
declare const QRCode: React.FC<{
margin?: number;
className?: string;
acrValues?: string[];
children: (props: {
qrElement: React.ReactElement;
/**
* Will be true once the QR code has been scanned
*/
isAcknowledged: boolean;
/**
* Will be true if the user cancels the login on his mobile device
*/
isCancelled: boolean;
/**
* Whether or not QR codes are enabled for this Criipto Applicaiton
*/
isEnabled: boolean | undefined;
error: OAuth2Error | Error | null;
retry: () => void;
/**
* A method for triggering a full screen redirect to authentication (useful if user is on mobile device already)
*/
redirect: () => Promise<void>;
}) => React.ReactElement;
}>;
export default QRCode;