bizfly-two-fa

Python SDK for Bizfly2FA


License
MIT
Install
pip install bizfly-two-fa==1.0.2

Documentation

BizflyTwoFa

Info: A python sdk for BizflyTwoFa.
Repository: https://github.com/shinrel22/python_bizfly_two_fa
Author: Tri Nguyen (https://github.com/shinrel22)
Maintainer: Tri Nguyen (https://github.com/shinrel22)

Installation

pip install bizfly_two_fa

Examples

from bizfly_two_fa import BizflyTwoFa

>>> bizfly_2fa = BizflyTwoFa(
    secret_key='app_secret_key'
)

# generate 2fa session
>>> session_uid = bizfly_2fa.generate_session(
    email='user_email',
    phone='user_phone'
)

# send otp
>>> bizfly_2fa.send_otp(
    session_uid=session_uid,
    delivery_type='sms',
)

# verify otp
>>> result = bizfly_2fa.verify_otp(
    otp_value='user otp input',
    session_uid=session_uid
)
>>> result