Skip to content

Kit

Auth & Access Kit

The sign-in and access management of the console as its own app: a two-step sign-in with one-time codes, users and groups with a permission matrix, sessions, two-factor setup and an audit log.

See it in the live demo

Screens

The screens, light and dark

Sign-in: email and password first, then a one-time code, desktop
Sign-in: email and password first, then a one-time code, phone
Sign-in: email and password first, then a one-time code
Access: users with their groups, sessions and sign-in state, desktop
Access: users with their groups, sessions and sign-in state, phone
Access: users with their groups, sessions and sign-in state
Settings: password, sign-in verification and active sessions, desktop
Settings: password, sign-in verification and active sessions, phone
Settings: password, sign-in verification and active sessions

What is inside

Auth & Access Kit, piece by piece

  • Sign-in

    Email and password, then a code from an authenticator app, an emailed code or a backup code, in a stepper that never reloads; a password reset by email.

  • Access screen

    Users (invite, block, unlock, reset the second factor, end sessions), groups with a permission matrix by module, action and scope, approvers, and an audit log.

  • Settings and security

    Password change, sign-in verification with a QR code and backup codes, active sessions with sign-out, and the first two-factor setup.

  • Session checks

    requireUser() on every page and route, a request gate that sends signed-out visitors to sign-in and refuses cross-site API writes.

  • Tests and docs

    Vitest unit and component tests (80% of the kit's code and its sign-in and access logic covered), Playwright with a phone viewport and an axe sweep, and a guide to connecting your auth.

Built with

  • Next.js 16
  • React 19
  • Tailwind CSS 4
  • shadcn/ui
  • Motion
  • Zod 4

FAQ

Questions about the kit

How is the kit different from the full console?

It is the sign-in, the Access screen and the security settings of the console as a Next.js app of its own: those screens, their components, the mock store and the tests. The full console adds every other screen for its own price.

Does it need an auth provider or a database to run?

No. It signs in with a demo session and keeps users, groups and the audit log in memory, so it runs and tests without a database. docs/CONNECTING-YOUR-AUTH.md shows where your provider (Better Auth's client is mirrored) and your tables plug in.

What may I do with it?

Build one product of your own with it, by one team: the kit has one licence at one price, no tiers. Client work and more products need a licence that covers them, such as the console's Team licence, which includes the kit's code. It is not a template or a UI kit to resell.