Skip to main content

A Django app to use services of phone.email.

Project description

Description

One Tap Sign In is a Django library for integrating phone verification functionality into your web application. It simplifies the process of global phone number verification using OTP/passcode, similar to Gmail’s One Tap Sign In feature. This library eliminates the need for complex telecom registration and SMS API Gateway integration for each country.

Installation

You can install One Tap Sign In using pip:

$ pip install one-tap-sign-in

Usage

To configure One Tap Sign In in your Django project, you can set the client ID and access token using the following functions:

# settings.py or config.py
from one_tap_sign_in import set_client_id, set_access_token

set_client_id("your_client_id")
set_access_token("your_access_token")

Once configured, you can call the get_verified_phone() function in your views to retrieve the verified phone number:

# views.py
from one_tap_sign_in.utils import get_verified_phone

def my_view(request):
    # Call the get_verified_phone function
    phone_number = get_verified_phone()
    # Further logic based on the retrieved phone number

License

One Tap Sign In is distributed under the MIT License. See the LICENSE file for more information.

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

one_tap_sign_in-0.1.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file one_tap_sign_in-0.1.tar.gz.

File metadata

  • Download URL: one_tap_sign_in-0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.7

File hashes

Hashes for one_tap_sign_in-0.1.tar.gz
Algorithm Hash digest
SHA256 14e0d19e2cff0e95e1dd13369687844c9569809dcc8d9f2444d786558cc2c1c7
MD5 d1d2c0eefa69348822a00d40724d46f2
BLAKE2b-256 8e92803176d2fbe3b0ac7db0b0e6212fd2c84fcb3b96da8fc07007891b4bae53

See more details on using hashes here.

Supported by

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