Rails 8 authentication generator

2 · Nithin Bekal · Oct. 22, 2024, midnight
Rails 8 has introduced a generator for adding basic authentication code to Rails apps. This builds upon the authentication primitives like has_secure_password that were introduced in previous versions of Rails. Last week, I decided to create a new Rails app and try out this new generator. Running the generator The first step to add authentication to your app is to run the generator: bin/rails generate authentication If you’re used to another Rails authentication generator, like authentication-z...