aui-auth
v0.0.11
Published
Sign in through assistant-ui accounts: server side sessions for web apps (OIDC code flow with PKCE, tokens kept in the app's store, single flight refresh), the device grant for CLIs, and token verification for resource servers
Readme
aui-auth
Server-side sessions for web apps that sign in through assistant-ui accounts: OpenID Connect with PKCE, tokens kept in the app's own database, single-flight refresh, and an encrypted cache cookie. Internal to assistant-ui; the manual is docs/first-party-auth.md and the design is packages/aui-auth/ARCHITECTURE.md in the assistant-internal repository.
The device grant, token verification and the token client under the sessions come from authical, re-exported under the accounts names. An application outside assistant-ui uses authical itself.
Entry points: aui-auth, aui-auth/accounts, aui-auth/next, aui-auth/device, aui-auth/verify, aui-auth/database, aui-auth/database/pg, aui-auth/database/redis, aui-auth/testing.
