This skill provides a standardized framework for safely extending the Elixir Phoenix authentication system generated by phx.gen.auth. It guides developers through the process of adding custom fields like usernames or profiles while maintaining security best practices. By enforcing rules such as using separate migrations, updating registration changesets, and ensuring test fixtures are properly confirmed, it prevents common pitfalls like cryptic test failures and application-level uniqueness bugs. It is an essential tool for any Elixir developer looking to customize their application's user identity and registration workflows.
주요 기능
01Test fixture synchronization for required custom fields
02Step-by-step migration patterns for custom user fields
03Automatic user confirmation patterns for authentication tests
04LiveView registration form and handler update templates
05Automated registration_changeset validation logic
06118 GitHub stars
사용 사례
01Implementing profile fields like avatars and bios separate from auth logic
02Adding a unique username field to a standard Phoenix auth setup
03Fixing failing authentication tests caused by missing required fields in fixtures