@berlinsms/react-twofa-component is a TypeScript React Component to validate an E-Mail adress using a Two Factor Authentification.
BerlinSMS - still under development!
Install the package using
npm -i @berlinsms/react-twofa-component
Usage
import {TwoFA} from '@berlinsms/react-twofa-component-mail';
// Minimal implementation:
<TwoFA
bsmsSitekey = {"your sitekey"}
/>
// Complete implementation:
<TwoFA
ref={twoFARef}
bsmsSitekey = {"your sitekey"}
onError = {TwoFAonError}
onVerify = {TwoFAonVerify}
onExpire = {TwoFAonExpire}
/>