# maxcountryman/flask-login

Flask user session management.

Repository: https://github.com/maxcountryman/flask-login
Canonical: https://ross.abutalabs.com/products/flask-login
Homepage: https://flask-login.readthedocs.io/
Language: Python
License: MIT
License Family: permissive
Topics: authentication, login-system, session-management
Last push: 2025-08-27T03:00:09+00:00

## Health v2 (maintenance only)
Score: 40/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 39, release rhythm 8, longevity 100
- inputs: {"age_days": 5288, "days_push": 371, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3675, forks 810 (observed 2026-08-28T04:08:13.630795+00:00)

## What it is
Flask-Login is a Flask extension that provides user session management, handling login, logout, and persistent session tracking. It is storage-agnostic, requiring only that user objects implement a few methods and a callback to load users by ID.

## Use cases
- add login and logout to a flask app
- manage user sessions across requests
- protect routes so only logged-in users can access them
- remember users' sessions over extended periods
- load current user in flask views
- implement remember-me cookie functionality

## When to choose
- you are building a Flask application that needs user authentication and session handling
- you want a lightweight, database-agnostic session management layer
- you need login_required route protection and current_user access in Flask

## When to avoid
- you need full-featured authentication with registration, password reset, and OAuth out of the box (consider Flask-Security or Authlib)
- you are not using Flask
- you need token-based or API-only authentication rather than session-based login

## Facets
- artifact type: library
- maturity: stable
- function: auth, middleware
- domain: web-development, security, backend
- platform: python
- tags: flask, session-management, login, user-authentication, flask-extension

## Member repositories
- maxcountryman/flask-login (main) score 40

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:13.630795+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:31:17.375472+00:00, confidence not recorded.
  - readme: https://github.com/maxcountryman/flask-login (fetched 2026-08-28T04:08:13.630795+00:00, sha 7aa138509068)
  - registry_pypi: https://pypi.org/pypi/flask-login/json (fetched 2026-08-29T09:25:46.455003+00:00, sha faead1389520)
- Data as of 2026-08-30T08:39:29.467469+00:00.
