From d0ac8106508f9f1eeb102f396bc9610b147110b7 Mon Sep 17 00:00:00 2001 From: Richard Hatherall Date: Thu, 7 Dec 2023 12:04:05 +0000 Subject: [PATCH] doc: Correct installation documentation --- README.md | 2 +- .../templates/cognito_idp_rails_initializer.rb.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c561946..3604550 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ If bundler is not being used to manage dependencies, install the gem by executin After adding the gem to your application, run the install generator: - $ rails generate cognito_idp:install + $ rails generate cognito_idp_rails:install This generator will add `cognito_idp` to your routes and install an initializer at `config/initializers/cognito_idp.rb`. diff --git a/lib/generators/cognito_idp_rails/templates/cognito_idp_rails_initializer.rb.tt b/lib/generators/cognito_idp_rails/templates/cognito_idp_rails_initializer.rb.tt index dd44909..4b5bf70 100644 --- a/lib/generators/cognito_idp_rails/templates/cognito_idp_rails_initializer.rb.tt +++ b/lib/generators/cognito_idp_rails/templates/cognito_idp_rails_initializer.rb.tt @@ -4,7 +4,7 @@ CognitoIdpRails.configure do |config| config.domain = ENV["COGNITO_DOMAIN"] config.on_valid_login = lambda do |token, user_info, session| # 1. Find or create a user. - # user = User.where(identifier: user_info.sub).find_or_create do |user| + # user = User.where(identifier: user_info.sub).first_or_create do |user| # user.email = user_info.email # end