JSPM

  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q92170F
  • License MIT

A Two Factor Authentication by BerlinSMS written in typescript- https://www.berlinsms.de/

Package Exports

  • @berlinsms/react-twofa-component
  • @berlinsms/react-twofa-component/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@berlinsms/react-twofa-component) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@berlinsms/react-twofa-component is a TypeScript React Component to validate Phonenumbers using a Two Factor Authentification.

BerlinSMS

Install the package using

npm -i @berlinsms/react-twofa-component

Usage

import {TwoFA} from '@berlinsms/react-twofa-component';

// Minimal implementation:
<TwoFA
    bsmsSitekey = {"your sitekey"}
/>

// Complete implementation: 
<TwoFA
    ref={twoFARef}                    
    bsmsSitekey = {"your sitekey"}
    onError = {TwoFAonError}
    onVerify = {TwoFAonVerify}
    onExpire = {TwoFAonExpire}
/>