Setup executes the registry's current latest CLI and migrates the authentication schema
Source references: 1The guide instructs users to run `npx auth@latest migrate`. The `@latest` tag does not pin a specific reviewed version, so executed behavior can change as the tag moves; the migration also makes lasting changes to the authentication database schema.
If the newest upstream release is compromised, changes behavior, or is incompatible with the project, the command could run unexpected code with developer permissions or cause authentication-table changes, deployment failures, and login outages.
The guide lists `npx auth@latest migrate` as a setup step. It obtains whichever CLI is tagged latest at that time, and the migration step is intended to change the built-in adapter's data structure; the same line directs Drizzle/Prisma users to generate and push changes. Exact impact depends on the project and tool version, so users should confirm the version, generated migration, backup, and rollback plan first.
1. Add `twoFactor()` plugin to server config with `issuer`2. Add `twoFactorClient()` plugin to client config3. Run `npx auth@latest migrate` (built-in adapter) or generate + push for Drizzle/Prisma4. Verify: check that `twoFactorSecret` column exists on user table