Playwright v1.31 introduced a new authentication API that replaces the old global setup approach. The new method converts the auth setup into a standard Playwright test project with dependencies, enabling multiple user roles and cleaner code. Key changes include creating a dedicated 'setup' project in the config, using storageState per project, and writing the auth flow as a regular test rather than a low-level Playwright script.