We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9e9542 commit 30377deCopy full SHA for 30377de
config/initializers/sorcery.rb
@@ -14,6 +14,10 @@
14
15
config.google.key = ENV['GOOGLE_CLIENT_ID']
16
config.google.secret = ENV['GOOGLE_CLIENT_SECRET']
17
- config.google.callback_url = "http://localhost:3000/oauth/callback?provider=google"
+ config.google.callback_url = if Rails.env.production?
18
+ "https://utopia-app-20240808-f76c709c579e.herokuapp.com/oauth/callback?provider=google"
19
+ else
20
+ "http://localhost:3000/oauth/callback?provider=google"
21
+ end
22
config.google.user_info_mapping = {email: "email", name: "name"}
23
end
0 commit comments