The service-credential seam: VerifyApiKey returns the key's owning service user + roles (same AuthenticationResponse shape), so consumers build their Ctx identically to a session. Cached ~60s per key, namespaced away from token cache entries. Rust additionally wraps CreateApiKey/ListApiKeys/RevokeApiKey. Versioning note: client patch releases may lead the server within a minor line when only exposing existing server surface. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| README.md | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||
README.md
@st-peter/client (TypeScript)
Official TypeScript client for st-peter (aura-users). Generated stubs are
committed under src/genpb/ (regenerate with npm run gen); the
StPeterAuthClient wrapper (token-verify cache, login/2FA/lookup) is layered
on top, with the raw wire surface re-exported as authpb.
const auth = StPeterAuthClient.connect("127.0.0.1:9091");
const user = await auth.verifyToken(token); // cached ~60s
See the repo root README for versioning and the authentication-central / authorization-local design.