How spongescripts/auxe-auth works
This is a small Flask authentication and license-key API. Clients submit credentials to receive JWTs, use bearer tokens for account and key-management operations, and authenticate license keys against HWIDs. The backend also reports dashboard statistics and can send operational messages to Discord. The excerpts show these responsibilities concentrated in one file; they do not establish a separate frontend or the role of doc/auth.py, so neither is modeled as a runtime component.
Main entry points: backend.py Flask routes
Components 11
API runtime
- Flask routes
api/backend.py
Identity
- User authentication
api/backend.py - JWT tokens
api/backend.py - Users collection
api/backend.py
License keys
- Key authentication
api/backend.py - Key management
api/backend.py - Keys collection
api/backend.py
Operations
- Dashboard stats
api/backend.py - Event logging
api/backend.py
Other components
- API client
- Discord webhook
Connections 13
- API client → Flask routes: sends requests
api/backend.py - Flask routes → User authentication: routes login
api/backend.py - User authentication → Users collection: reads users
api/backend.py - User authentication → JWT tokens: generates tokens
api/backend.py - Flask routes → JWT tokens: verifies tokens
api/backend.py - Flask routes → Key authentication: routes key checks
api/backend.py - Key authentication → Keys collection: reads and updates
api/backend.py - Flask routes → Key management: routes key operations
api/backend.py - Key management → Keys collection: updates and deletes
api/backend.py - Flask routes → Dashboard stats: routes statistics
api/backend.py - Dashboard stats → Keys collection: counts keys
api/backend.py - Flask routes → Event logging: logs events
api/backend.py - Event logging → Discord webhook: posts webhook
api/backend.py