Created
October 24, 2020 14:58
-
-
Save NicholusMuwonge/745950bccae7016d7a6c75cc7f506f18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Please find this find via config/initializers/devise.rb | |
# Add these to this file in case you're using these providers | |
config.omniauth :google_oauth2, | |
Rails.application.credentials[:google_app_id], | |
Rails.application.credentials[:google_app_secret], | |
{ scope: 'userinfo.email, userinfo.profile', skip_jwt: true } | |
config.omniauth :facebook, | |
Rails.application.credentials[:facebook_app_id], | |
Rails.application.credentials[:facebook_app_secret], | |
scope: 'public_profile,email' | |
# We save this data in credentials, read more about rails credentials to understand how they work. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment