Skip to content

Talabov/Auto-login-registration-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto-login Registration API

Production-ready Flask API for instant user registration & login with JWT tokens.
Includes rate-limiting, SQLite, Docker support.
Perfect for SaaS, MVPs, rapid prototyping, and instant product launch.


🚀 Features

  • Register & auto-login: one request, instant JWT token
  • Secure login: email + password (hashed, never plain)
  • JWT authentication: stateless, scalable
  • SQLite out of the box: change DB in 1 line
  • Rate limiting: brute-force protection for both registration & login
  • Docker-ready: deploy in seconds
  • .env support: easy configuration
  • Clean project structure: easy to scale and maintain
  • Fully tested: all endpoints verified with Postman

📦 Endpoints

POST /register

Request:

{
  "email": "[email protected]",
  "password": "mysecret123"
}

Response:

{
  "access_token": "<JWT>"
}

POST /login

Request:

{
  "email": "[email protected]",
  "password": "mysecret123"
}

Response:

{
  "access_token": "<JWT>"
}

⏱️ Rate Limits

  • /register: 5 per hour
  • /login: 10 per hour

⚡ Quick Start

Run with Docker (recommended)

docker build -t auto-auth-api .
docker run -d -p 5000:5000 auto-auth-api

Run locally

pip install -r requirements.txt
python app.py

.env example

JWT_SECRET_KEY=your-jwt-secret-here
DATABASE_URI=sqlite:///users.db

🖼️ Screenshots

  • run_server.png — API server running
  • register_postman.png — registration in Postman
  • login_postman.png — login in Postman

💡 Use cases

  • Quick SaaS/MVP launches
  • Instant integration into any backend

💡 You can see real examples on the Gumroad gallery.


💼 Ready-to-Use Version

You can get a ZIP version with all files, setup instructions, .env.example, and more:

👉 Buy it on Gumroad


📬 Contact

Need this functionality in another language or stack (Node.js, Go, etc)?
Contact the author: [email protected]
Telegram: @talabovali

Note: Pricing may vary depending on complexity and target stack.


Production ready. 100% manually tested. Ready for deployment and monetization!

About

JWT-based Flask API for user registration and login. Ready for deployment with Docker.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published