Protected API

Shared todo API protected by @securelink/server.

Source on GitHub: examples/todo/server

pnpm --filter @securelink/todo-server start
# → http://127.0.0.1:8787

Routes

Method Path Notes
POST /securelink/anonymous/bootstrap Anonymous session
POST /securelink/anonymous/refresh Token rotation
GET /api/todos List (per identity)
POST /api/todos Create { title }
PATCH /api/todos/:id Update { title?, done? }
DELETE /api/todos/:id Delete

Business routes call securelink.verify(...) before touching the in-memory store. Rate limits are enabled on the server.

Download: Todo example apps · GitHub