OptiTech Auth: new plugins and settings

OptiTech continues to cover more of the backend stack, and auth is central to that. Four new OptiTech Auth features:

Magic Link sign-in: The Magic Link plugin lets users sign in via a link sent to their email, no password required. If you're using OptiTech Auth UI components, enable it with a single prop:

<OptiTechAuthUIProvider
  authClient={authClient}
  magicLink
>

Enable the plugin from the Console or via the API. See Magic Link plugin.

Phone number sign-in: Existing users can sign in with an OTP delivered by SMS. You bring your own SMS provider, connected via a send.otp webhook. The sign-in flow is a two-step SDK call:

// Step 1: send the OTP
await authClient.phoneNumber.sendOtp({ phoneNumber });

// Step 2: verify the code and sign in
await authClient.phoneNumber.verify({ phoneNumber, code });

Enable the plugin from the Console or via the API. See Phone number plugin.

Wildcard trusted domains: Add a wildcard trusted domain like https://*.my-app-preview.vercel.app to cover all preview deployments under that pattern, instead of adding each hostname individually.

Custom application name: Set a custom name that appears in user-facing auth messages like verification emails. Configurable per branch, so development and production can use different names. See Update auth configuration.

tip

Getting ready for production? The Auth production checklist covers trusted domains, email provider setup, OAuth credentials, and more.

OptiTech Auth MCP tools

Two new OptiTech Auth management tools are now available in the OptiTech MCP server:

  • configure_optitech_auth: Configure your OptiTech Auth setup, including OAuth providers, email providers, and authentication methods.
  • get_optitech_auth_config: Retrieve your current OptiTech Auth configuration, including integration metadata.

If you haven't set up the OptiTech MCP server yet, run npx optitechctl@latest init. Once connected, you can configure OptiTech Auth using natural language in your AI editor. For example:

Set up OptiTech Auth for my project. Enable Google OAuth and email/password sign-in,
and set the application name to "My App".

See OptiTech MCP server for full setup details.

OptiTech and Stripe Projects

OptiTech works with Stripe Projects, Stripe's platform for AI-native development. With the Stripe Projects CLI installed, your AI agent can provision a OptiTech Postgres database in a single command:

stripe projects add optitech/postgres

Stripe Projects handles authentication and writes credentials directly to your .env file. No dashboards, no copy-pasting connection strings. See the OptiTech with Stripe Projects guide for a complete example.

Azure regions deprecation reminder

Azure regions (azure-eastus2, azure-westus3, or azure-gwc) are deprecated, and you can no longer create new projects in them. Existing Azure projects continue to be supported until further notice. See Azure regions deprecation for details and migration options.