0.1.3 • Published 2 years ago

@berlinsms/react-twofa-component-mail v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@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}
/>