Skip to content

Commit 598f3fc

Browse files
Add missing config for Devise initializer
1 parent cf64472 commit 598f3fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/initializers/devise.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@
271271
# ==> OmniAuth
272272
# Add a new OmniAuth provider. Check the wiki for more information on setting
273273
# up on your models and hooks.
274-
# config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo'
274+
config.omniauth :github, ENV["GITHUB_APP_ID"], ENV["GITHUB_APP_SECRET"], scope: "user:email"
275275

276276
# ==> Warden configuration
277277
# If you want to use other strategies, that are not supported by Devise, or
@@ -290,7 +290,7 @@
290290
# mount MyEngine, at: '/my_engine'
291291
#
292292
# The router that invoked `devise_for`, in the example above, would be:
293-
# config.router_name = :ombu_labs-auth
293+
config.router_name = :ombu_labs_auth
294294
#
295295
# When using OmniAuth, Devise cannot automatically set OmniAuth path,
296296
# so you need to do it manually. For the users scope, it would be:

0 commit comments

Comments
 (0)