First Login
Default local behavior
- Open
http://localhost:5050. - Register a user account.
- The first user becomes
adminautomatically.
Production bootstrap behavior
In production-oriented deployments, public registration is often disabled by default.
For controlled first-admin bootstrap windows:
- Set
ENABLE_PUBLIC_FIRST_ADMIN_BOOTSTRAP=true. - Call
POST /api/register. - After bootstrap, disable public registration (
DISABLE_PUBLIC_REGISTRATION=true).
Verify backend auth
You can verify auth status with:
GET /api/checkLoginusingAuthorization: Bearer <token>
Recommended first admin tasks
- Configure checker/scraper global settings.
- Add or validate judge endpoints.
- Configure scrape sources.
- Set GeoLite API key if geo enrichment is needed.
- Review website blacklist policy.
- Review auth and observability hardening envs.
JWT behavior
- Login/register returns JWT.
- JWT is expected in
Authorization: Bearer <token>. POST /api/refreshTokenrotates and revokes the old token.POST /api/logoutrevokes the current token.- Role-based authorization protects admin endpoints.