Polyglot client for st-peter (aura-users) — Rust / Go / TypeScript, one vendored auth proto, versioned in lockstep with the st-peter server (v0.2.0). Mirrors waymaker-client's layout: proto/ + scripts/ + per-language packages. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| genpb/auth | ||
| README.md | ||
| auth.go | ||
| go.mod | ||
| go.sum | ||
README.md
st-peter-client (Go)
Official Go client for st-peter (aura-users). Generated stubs are committed
under genpb/ (regenerate with ../scripts/gen-go.sh); the stpeter.AuthClient
wrapper (token-verify cache, login/2FA/lookup) is layered on top.
auth, err := stpeter.Connect("127.0.0.1:9091")
user, err := auth.VerifyToken(ctx, token) // cached ~60s
See the repo root README for versioning and the authentication-central / authorization-local design.