15 lines
540 B
Markdown
15 lines
540 B
Markdown
# @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`.
|
|
|
|
```ts
|
|
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.
|