Skip to content

BazaroZero/drf-sms-auth

Repository files navigation

SMS auth on Django Rest

Usage ✉️

You should have poetry and docker installed

  • Initialize environment and install dependencies
poetry install
  • Create .env file in drf-sms-auth\config directory as in the example

  • Run database

docker-compose --env-file drf-sms-auth\config\.env up
  • Apply migrations
python manage.py migrate
  • Run server and check docs at localhost:8000/swagger or redoc
python manage.py runserver

Customization ✏️

Sending SMS

Replace dummy function in drf-sms-auth\users\utils.py with your own

Constants

In settings.py you can edit CODE_EXPIRATION_SECONDS and CODE_RESEND_TIMEOUT, variables of simple_jwt library which is used for tokens implementation etc

About

Pet project dedicated to Django Rest

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published