@nexpress/auth-pages
v0.4.6
Published
Server route factories + headless React hooks for member auth pages — login, register, password reset, verify, OAuth.
Maintainers
Readme
@nexpress/auth-pages
Server route factories for NexPress staff and member authentication, plus headless React hooks for member-facing auth screens.
Install
pnpm add @nexpress/auth-pagesExports
@nexpress/auth-pages/serverexportscreateMemberAuthRoutes()andcreateStaffAuthRoutes(). Host apps supply the existing NexPress bootstrap, DB accessor, and auth helpers, then re-export the returned handlers from their App Router route files.@nexpress/auth-pages/clientexports controlled hooks for member login, registration, logout, email verification, forgot-password, and reset-password screens. Themes own the JSX while the hooks own request, validation-error, and submission state.
The factories use the canonical NexPress auth/session contract: one persisted row per browser session, refresh rotation, anti-enumeration responses, and shared API error envelopes.
Links
License
MIT
