@fonderie/react-auth-screens
v0.4.0
Published
Pre-built React Web auth screens for Fonderie — login, register, forgot password.
Maintainers
Readme
@fonderie/react-auth-screens
Pre-built React auth screens — LoginScreen, RegisterScreen, and
ForgotPasswordScreen — built on
@fonderie/react-auth
hooks. Plain HTML form elements, inline styles you can override, zero UI
library dependency.
Install
npm install @fonderie/react-auth-screensUse
import { FonderieClient } from '@fonderie/client';
import { LoginScreen } from '@fonderie/react-auth-screens';
const client = new FonderieClient({ baseUrl: 'https://api.example.com/v1' });
function App() {
return (
<LoginScreen
client={client.auth}
onLoginSuccess={({ user }) => console.log('signed in', user.email)}
onNavigateToRegister={() => setRoute('register')}
onNavigateToForgotPassword={() => setRoute('forgot-password')}
/>
);
}Each screen wires a useLogin/useRegister/useForgotPassword hook from
@fonderie/react-auth internally — loading state, error display, and token
persistence are already handled. Need just the state management without the
markup? Use @fonderie/react-auth's hooks directly.
Why this exists
You've shipped this plumbing before — auth, teams, billing, messaging —
and the next project will ask for it again. Fonderie packages it once:
plain TypeScript modules for
@fonderie/core,
PostgreSQL-backed, self-hosted, MIT. No external control plane, no
per-seat anything. Register the modules you need; skip the ones you don't.
This package owns pre-built React auth UI, so you don't have to write a
login form from scratch. Swap it for your own design system whenever you
outgrow it — @fonderie/react-auth's hooks work standalone.
Browse the whole set at fonderiejs/sdk · follow @fonderiejs
License
MIT © Fonderie, Inc.
