{"repo":"melihcolpan/flask-restful-login","free":true,"listed":false,"github":"https://github.com/melihcolpan/flask-restful-login","clone":"git clone https://github.com/melihcolpan/flask-restful-login.git","description":"Flask restful service consists of register, login, logout, reset password and some data routes. It includes a few example routes based on user, admin, or super admin access.","language":"Python","stars":126,"topics":["flask","flask-restful","flask-backend","flask-application","flask-app","login-system","jwt-bearer-tokens","jwt-auth","sqlalchemy-python","sqlite-database"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Flask-RESTful Login A small, easy-to-read example of token-based authentication built with Flask and Flask-RESTful. It shows how to register users, log them in, issue short-lived access tokens and longer-lived refresh tokens, and protect routes by user role (user / admin / super admin). It is intentionally minimal so you can read the whole thing in an afternoon and use it as a starting point for your own API. --- Features - 🔐 Register / Login / Logout with JSON requests - 🪙 JWT-style access + refresh tokens (signed and time-limited) - 👮 Role-based access — user , admin , super admin - 🔑 Passwords hashed with bcrypt (never stored in plaintext) - 🧪 A small test suite you can run in one command - 🗄️ SQLite database (zero setup) via Flask-SQLAlchemy Tech stack Purpose Library ------------------ ------------------------ Web framework Flask + Flask-RESTful Database / ORM Flask-SQLAlchemy + SQLite Password hashing bcrypt Token signing itsdangerous Auth header parsing Flask-HTTPAuth --- Project structure --- Prerequisites - Python 3.8+ - A tool to send HTTP requests. Any of these work: httpie (used below), curl , Postman, or Insomnia. --- Quick start The API is now running at http://localhost:5000 . 💡 On Windows PowerShell, set a variable with $env:JWT SECRET=\"...\" instead of export . Environment variables Variable Required Default What it does -------------------- :------: ------- ------------------------------------------------------- JWT SECRET ✅ – Signs access tokens. Keep","default_branch":null,"files":null,"tree":[],"storefront":"/r/melihcolpan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/melihcolpan/flask-restful-login/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}