๐ react-auth โ Authentication UI and State
react-auth is the front-end half of the Aetos auth story: a JWT-backed
AuthProvider, a pluggable login/register screen, profile screens, and an
axios factory that carries bearer tokens and reacts to 401 responses. The
server side lives in the Auth Server service; this package never defines
an endpoint contract of its own.
Doc model: this wiki is written for humans โ guides and wiring recipes. The authoritative API contracts live in the code (RDFC JSDoc) and the machine-readable bundle under
docs/mcp/. Browse the TypeDoc site for the full symbol reference.
๐ Key Features
- โ๏ธ
AuthProvider+useAuthโ current user, token, loading and error state withlogin/register/logout - ๐งพ
createApiClientโ axios withAuthorization: Bearer <token>on every request andauth:unauthorizeddispatch on401 - ๐ญ
AuthPageโ a ready-made split-screen login/register form - ๐ค
ProfileCreate/ProfileEdit/ProfileViewโ presentational profile screens that delegate persistence to your callbacks - ๐๏ธ
tokenStoreโ the singlelocalStorageaccessor keeping the UI and the network layer in sync
๐ฆ Documentation Structure
| Section | Description |
|---|---|
| Overview | What the library is, and the token/session lifecycle |
| Wiring Guide | Drop-in recipes for provider, gate and profile flows |
๐ Quick Start
๐ Related Resources
- Source Code: the
react-authrepository - TypeDoc site: the generated
libHTML for the full API reference - MCP Bundle:
docs/mcp/(docs://modules/react-auth) - Library Registry: registered in the standards hub as
react-auth(MCP:8011) - Auth Server: the service behind
authConfigโ readdocs://specon thestandardsMCP for the pinned contract
ยฉ Aetoskia Internal โ react-auth 0.0.1