Skip to content

This project is basically built for allowing user to Sign-In/Sign-Up by token based authentication system, using knox package. This will allow a user to do multi login on different devices with certain expiry. Also, when signing-up, a user would be able to receive an OTP to verify their phone number as username.

License

Notifications You must be signed in to change notification settings

satyarth12/DRF-custom_mobileOTP_auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DRF - Custom user mobile OTP Authentication System

Introduction

This is django-rest-framwork custom mobile otp authentication system, which can be used in multiple use cases for allowing the users to register themselves with the mobile OTP they receive . Users can also update their profile.

Urls

Custom Urls have been used and can be seen in progress via POSTMAN or by connecting it to some frontend framwork.

Running app

  1. activating the pip virtual env
pipenv shell
  1. Installing packages
pipenv install -r requirements.txt
  1. Making Migrations
python manage.py makemigrations
python manage.py migrate
  1. Running server
python manage.py runserver

NOTE :

Third party apps such as twillio or any other messaging apps can be used for sending the OTP. Here, I've used a simple function to generate OTP in the local server.

About

This project is basically built for allowing user to Sign-In/Sign-Up by token based authentication system, using knox package. This will allow a user to do multi login on different devices with certain expiry. Also, when signing-up, a user would be able to receive an OTP to verify their phone number as username.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages