Skip to main content

Python SDK for Bizfly2FA

Project description

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

.. code :: python

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bizfly_two_fa-1.0.5.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

bizfly_two_fa-1.0.5-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page