AuthSimplified is a lightweight Django package for secure email OTP authentication with no unnecessary extras.
pip install authsimplified
Add to INSTALLED_APPS in settings.py:
INSTALLED_APPS = [
# ...
'authsimplified',
]
Configure Authentication Backends:
AUTH_USER_MODEL = 'authsimplified.User'
Configure Django REST Framework:
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': [
'rest_framework.authentication.TokenAuthentication',
],
}
Make Migrations:
$ python manage.py makemigrations authsimplified