Skip to content

Built an API to send email based OTPs using SMTP library

Notifications You must be signed in to change notification settings

GauravDubey56/FLask_OTP_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OTP-flask-API

Installation

#in app.py line 6 & 7 Add Your Email Credentials / prefer to use Secrets/.env variable
#if using Gmail allow access to less secure app in google-account settings
pip install -r requirements.txt
python app.py

Usage

http request : localhost:5000/[email protected]
Json Return  : {"OTP":"3777","email":"[email protected]"}
#The same OTP is also send to the specified email.

About

Built an API to send email based OTPs using SMTP library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages