Skip to main content

A Django app to use services of phone.email.

Project description

Description

One Tap Sign In is a Django library developed by Phone.Email for integrating phone verification functionality into your website. 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 phone-email-auth

Usage

To get verified phone number call get_user_info() function in your views:

# views.py
from phone_email_auth.utils import get_user_info

def my_view(request):
    # Call the get_verified_phone function
    if 'access_token' in request.GET:
        country_code,phone_number = get_user_info('TYPE_YOUR_CLIENT_ID_HERE',request.GET['access_token'])
        context = {
            'phone_number': phone_number,
            'country_code' : country_code
        }

    response = render(request, 'index.html', context)
    # 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

phone_email_auth-0.13.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file phone_email_auth-0.13.tar.gz.

File metadata

  • Download URL: phone_email_auth-0.13.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.3

File hashes

Hashes for phone_email_auth-0.13.tar.gz
Algorithm Hash digest
SHA256 3a2b5445fab0185a2867246122604895ee54560c384c457f4f8bc6b6e6f4f424
MD5 b31319615e88305a8219df56017b2000
BLAKE2b-256 87f15144fe4bbbd4b66230e76fe07d2d4e78349c2345605f2f986c5cbd3ea694

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