LanguageEnglish
Build →

Guides · QuorumAuth

Put sign-in and account controls in your app

Connect the session once. Add the screens your product needs. Then enforce permissions in the services that do the work. Each example below is the exact code that compiles against the pinned component package.

Updated

Connect your app once

Run the session service on your app’s origin, then wrap the app once. Sign-in, invitations and role-aware screens share that session instead of each needing their own client or token store.

  1. Prepare the session service. Your deployment operator provides the session service with its datastore and a server-held encryption key. Your application code neither configures nor receives that key.
  2. Expose it beside your app. Route /auth on the same origin as your app to the session service. The browser uses an HttpOnly session cookie; your product code receives the signed-in identity, not a session token.
  3. Wrap the app once. Mount AuthProvider once. It derives the same-origin authentication path; components beneath it share session state, and organization panels use the organization selected in that session.
import type { ReactNode } from "react";
import { AuthProvider } from "@brefwiz/quorumauth-ui";

export function AppSession({ children }: { children: ReactNode }) {
  return <AuthProvider>{children}</AuthProvider>;
}
Path What it is
/ Your application. Keep your product screens and routes.
/auth The shared session. Sign-in and account components call the session service here.
/api Your product’s requests. If your API shares this session, route it through the session service. Keep permission checks in the backend.

A same-origin path is required; a separate provider-domain URL is not accepted. See deployment and session boundaries.

Add only what you need

Each example sits inside the provider shown above. Use the code as the starting point for your own screen.

Sign customers in

LoginForm handles the sign-in interaction through the shared session. Its completion callback lets you open your product’s next screen without handling the session token yourself.

import { LoginForm } from "@brefwiz/quorumauth-ui";

export function SignInScreen({
  onSuccess = () => window.location.assign("/dashboard"),
}: {
  onSuccess?: () => void;
}) {
  return <LoginForm onSuccess={onSuccess} />;
}

After sign-in, your app can use the session’s identity and roles. Additional authentication steps still need the appropriate screens when your sign-in policy requires them. Each customer organization can put passkeys first and choose which fallbacks its members get.

Invite a team

MemberListPanel lets an administrator create an invitation for a chosen role and review pending invitations. At this package version it takes no props: it reads the organization from the signed-in session, so there is nothing to pass and no organization id to look up.

import { MemberListPanel } from "@brefwiz/quorumauth-ui";

export function TeamInvitations() {
  return <MemberListPanel />;
}

The component creates a shareable invitation link and displays existing pending invitations. Your product does not need to build the invitation form or its loading and error states. Selling to businesses? Each customer gets its own roles and sign-in policy per organization.

Show the right controls

Wrap the relevant part of your screen in RequireRole. It reads the signed-in session and shows either your content or your chosen fallback.

import type { ReactNode } from "react";
import { RequireRole } from "@brefwiz/quorumauth-ui";

export function AdminAccess({
  children,
  denied,
}: {
  children: ReactNode;
  denied: ReactNode;
}) {
  return (
    <RequireRole roles={["admin"]} fallback={denied}>
      {children}
    </RequireRole>
  );
}

Admins see the controls. Other members see an explanation instead of an unusable action. This controls what the browser displays. Your service must still authorize every protected action; hiding a button is not a security boundary.

Connect the rest of your product

  • Protect actions in your services. Verify incoming credentials, apply permission checks, pass limited access to software, and revoke it when needed. Open the service integration guide.
  • Plan where the services run. Understand session custody, access checks, permission updates and behaviour during an outage. Review the deployment model.
  • Keep the sign-in you already use. Introduce QuorumAuth at one service boundary while existing accounts stay in place. Plan an incremental rollout.
  • Find the other screens you need. Account security, roles, service accounts and workload administration are in the full component catalog.
  • Read the errors you get back. When a request fails, QuorumAuth services answer in one machine-readable shape, RFC 9457 problem details, the same error format your own APIs can return.

What you can use today

QuorumAuth is sold through our sales team. These examples show the current product interface; they are not a live identity service or a promise of self-serve access.

  • Contact sales to discuss your application and its deployment requirements.
  • See the plans and what stays free before you size your rollout.
  • Self-hosting is on the roadmap. Server source is not currently open.
  • Text-message verification screens exist, but message delivery is not live.

Talk to sales about QuorumAuth.

QuorumAuth is sold through our sales team. The Build page shows the drop-in sign-in on your origin and how to reach sales about your stack.

Go to Build and contact sales →