What you get

Everything a business application needs to know who is using it, generated into your app and wired into the API, the portal and the CLI.

  • Users and accounts

    Users belong to an account and carry roles. Every request knows which account and which roles it acts for, and the rest of the application uses that to decide what is visible.

  • Invitations

    Invite people by email or with a shareable link. Invitations can be previewed, accepted and revoked, and new users land in the right account with the right roles.

  • Sessions you can revoke

    Sessions are records in your app, so a session can be ended, and the user with it.

  • Two-factor authentication

    Time-based one-time codes from an authenticator app, with backup codes, set up from an account security page in the portal.

  • Single sign-on

    Sign in with Google, Microsoft or GitHub. Each provider is a separate component, so you install only the ones you need. Only an email address the provider has verified can be linked to an existing account.

  • Passwords done properly

    Passwords are hashed with Argon2 and repeated failed sign-ins are throttled. Login links, password resets and invitations go out through the Email module, using your own templates.

How it works

Authentication is a port with interchangeable backends: a password backend, a backend for an existing external identity provider, and a dummy for local development. You choose one per environment, without touching application code.

Because sign-in is part of the generated application rather than a separate product, the same identity and the same roles apply everywhere: in the REST API, in the portal, in the command-line tool and in the MCP server that AI assistants use. Pair it with the OAuth2 module to let other applications sign in on behalf of your users.

Authentication depends on the Email module for the mails it sends.