Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Correct installation documentation #1

Merged
merged 1 commit into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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