PyOTP extension for DRF (Django Rest Framework) !¶
- This library uses PyOTP library for generating and verifying one-time passwords.Here OTP generation and Verification is done via DRF APIs.
- The main focus is to open an API for OTP Generation & Verification.
pip install drf-pyotp
Add rest_pyotp app in your installed apps:
INSTALLED_APPS = ( ... 'rest_pyotp', )
Run migrations using:
python manage.py migrate
Add Urls in your url file:
url(r'', include('rest_pyotp.routers', namespace='rest-pyotp-urls')),
- If anyone wish to contribute in improving this library then he is most welcome, due credit will be given to every individual.