๐ ๏ธ Development
Working on jwtlib itself.
๐ Repository layout
| Path | Purpose |
|---|---|
jwtlib/ |
The library package (app, introspection, models, repository, security, utils, exceptions) |
jwtlib/*.pyi |
Type stubs published alongside the implementations |
tests/ |
Auth-flow tests (register โ login โ verify โ logout) |
docs/lib/ |
Generated library reference (docforge, flat layout) |
docs/mcp/ |
Machine-readable bundle served by the MCP server |
docs/wiki/ |
This hand-written wiki |
๐ง Setup
๐งช Tests
The suite drives the full async auth flow: registration, login, duplicate handling, session lookup, logout, and introspection.
โ Quality gates
The CI quality gate runs, matching the Drone pipeline:
๐ Building documentation (docforge)
The site is generated by docforge
and served per kind under site/{kind}:
--module-is-sourcerenders the flatdocs/lib/layout (no nesting underjwtlib/), matchingdocforge.nav.ymlanddocs/mkdocs.lib.yml.--mcpregenerates the structured bundle indocs/mcp/.--wikibuilds this wiki.
Preview locally:
๐ Security checklist
- Never log passwords, tokens, or hash material.
- Keep new flows pure: models in
models/, token logic insecurity.py, orchestration inapp.py. - Add a regression test for every auth behavior change.
๐ Read Next
- How to Use โ public API in action.
- Overview โ architecture.