@berlinsms/react-twofa-component-mail
v0.1.3
Published
A Two Factor Authentication by BerlinSMS written in typescript https://www.berlinsms.de/ . This component is for validating a E-mail adress. It is a react component that can be used in any react project.
Downloads
27
Readme
@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}
/>