Skip to content

Instantly share code, notes, and snippets.

@NicholusMuwonge
Created October 24, 2020 14:58
Show Gist options
  • Save NicholusMuwonge/745950bccae7016d7a6c75cc7f506f18 to your computer and use it in GitHub Desktop.
Save NicholusMuwonge/745950bccae7016d7a6c75cc7f506f18 to your computer and use it in GitHub Desktop.
# 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