@sineforge/auth-react
v0.1.0
Published
React session hooks and authentication components for Sineforge
Readme
@sineforge/auth-react
Unpublished React 19 components for Sineforge SDK 2.0.
AuthProvider,useAuthSession,AuthGate: session lifecycle and state presentation.SignIn,SignUp,AuthFlow: browser-flow forms, including verification, recovery, settings, MFA and reauthentication steps.useBrowserAuthFlow,FlowForm: validated flow control and rendering for custom layouts.
Applications supply a stable SDK client, base URL, current location and navigation
adapter. No router or CSS framework is required. Optional styles are exported as
@sineforge/auth-react/styles.css. Client-side gates never replace server authorization.
See the integration guide
for complete examples, routing, theming, behavior and current limitations.
Account components include AccountSecurity, SessionManagement and
AuthorizedApplications. List components require the current sessionId and
optionally accept onAuthRequired for host-controlled reauthentication.
Localization and real-service release E2E remain future work.
From the platform repository run npm test --workspace @sineforge/auth-react,
npm run typecheck --workspace @sineforge/auth-react, and
npm run build --workspace @sineforge/auth-react.
Use npm run dev:preview --workspace @sineforge/auth-react for the local fixture
preview on port 4174. It sends no credentials and does not verify live providers.
Build then run npm pack --workspace @sineforge/auth-react --pack-destination /path/to/example/vendor.
Install that tarball in an application to verify consumption before publishing.
<SignUp registrationMode="email" /> focuses standalone signup on email and
password. <SignIn /> reads the runtime's phoneAutoRegister policy and explains
when SMS verification signs in or creates an account. Identity creation, code
redemption and MFA remain server-owned. See the contact policy.
