An authentication library made for you to take control of your own authentication.
Owning a domain and an email can have several benefits, you don't have to use those random generated (random subdomain).something.(Whatever fancy TLD they now these days.) It also has one more benefit that we are going to make use of in this library.
A smtp server manages the outgoing mails and every Email provider must have it. It works on two ports SSL and non SSL (Real ports can vary eg. 465 and 587). When we go to our all fancy, customized and tagged dashboards which we never use properly, sends request for to send a mail.
Customiizing an authentication mail and when a user logs in is a satisfactory feeling, whereas using external libraries is a cumbersome process setup their SDK's send them analytics data even after unchecking the send analytucs reports checkbox and not much customization to go with.
Ofcourse as your needs grow it might not be a good idea to manage such low level and of utmost Importance (Communication) servuce on your own but until then these are the limits These may vary from providor to providor and depending on your mail plans
At the time of writing this with a normal HOSTINGER plan I had 3000/Mails/Day which is sufficient for a hobby project or even a small business.
-
Need a Redis instance.
docker pull redis
-
Setup this project
git clone [email protected]/ashweenmankash/magiclinkgenerator.git
python -m venv env
source ./env/bin/activate
pip install -r requirements.txt
-
Setup your .env files.
BROKER=redis://localhost:6379
SECRET= a secret that is shared between you and your service
SMTP_SERVER=smtp.hostinger.com
SMTP_PORT=465
MAIL_ADDRESS= your email address
MAIL_PASSWORD= your email's password
SERVICE_NAME= Your business name
4) Run!
python -m app