Workers
Workers are the people picking orders on the warehouse floor. Each worker has a unique ID and authenticates with a 4-digit PIN.
Worker Fields
Section titled “Worker Fields”| Field | Description |
|---|---|
| Worker ID | Unique identifier (e.g., worker-001) |
| Name | Display name (e.g., Alice Manager) |
| PIN | 4-digit authentication code (BCrypt-hashed in the database) |
| Role | picker, manager, or admin |
| Role | Mobile App | Web Dashboard |
|---|---|---|
| Picker | Scan barcodes, view assigned waves | No dashboard access |
| Manager | Scan barcodes, view assigned waves | Full dashboard access |
| Admin | Scan barcodes, view assigned waves | Full dashboard + worker management |
Managers and admins can:
- Create and manage waves, orders, and products
- View live picking progress
- Review discrepancies
- Manage worker accounts (admin only)
Adding a Worker
Section titled “Adding a Worker”- Navigate to Workers in the dashboard.
- Click Add Worker.
- Enter a Worker ID, Name, and PIN.
- Select the role (picker, manager, or admin).
- Click Save.
The PIN is hashed with BCrypt before storage. The original PIN is not retained — provide the worker with their PIN securely.
Worker Authentication Flow
Section titled “Worker Authentication Flow”- Worker enters their Worker ID and PIN on the mobile app or dashboard.
- The API validates the PIN against the BCrypt hash.
- A JWT is issued with 24-48 hour expiry.
- The token is stored locally and sent with each request.
No email, no password, no IT involvement. Workers just need their ID and PIN.
Deactivating a Worker
Section titled “Deactivating a Worker”To prevent a worker from logging in, delete or disable their account
from the Workers section. Active tokens will still work until they expire
(24-48 hours). For immediate revocation, restart the API with a new
JWT_SECRET.