Skip to content

Commit

Permalink
doc: Correct installation documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rhatherall committed Dec 7, 2023
1 parent 90537ed commit 4959dcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4959dcb

Please sign in to comment.