SWOPMOBILE / ENGINEERING PROJECT

GitHub Pages hosts this interface. The updated authentication backend is tested locally and will be released separately; existing account pages currently use the previous service.

One account service.
Clear boundaries.

A reusable authentication project with login, rotating credentials, device sessions, and server-enforced roles. Built with JavaScript, Hono, Cloudflare Workers and SQLite/D1.

Integration exampleExisting account appRead the source
Actual local session-management screen using a fictional test account
Actual local interface · fictional test account

What each role can actually do

ActionUserModeratorAdmin
Own profile, jobs, favorites, sessionsYesYesYes
Other users’ private jobs/favoritesNoNoNo
List accounts and view role detailsNoNoYes
Role-editing APINot implementedNot implementedNot implemented
Login, refresh, logout—in plain language

Your password is checked against a salted PBKDF2 hash. A signed access token identifies your session. A rotating refresh token renews access; replay revokes that session. Protected requests check that the session is still active. Logout removes the session, so its access token stops working.

Honest project boundaries

The integration example runs locally. Existing account pages retain their established service configuration. There is no claim of production readiness or real customer adoption. Role labels do not imply unimplemented moderation features. Public previews contain no private account records.

Test cases, local setup, Postman requests, and security limitations are documented in the repository.