mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-31 19:17:48 +00:00
10 lines
392 B
Ruby
10 lines
392 B
Ruby
# OmniAuth configuration
|
|
# Sets the full host URL for callbacks and proper redirect handling
|
|
OmniAuth.config.full_host = ENV.fetch('FRONTEND_URL', 'http://localhost:3000')
|
|
|
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
|
provider :google_oauth2, ENV.fetch('GOOGLE_OAUTH_CLIENT_ID', nil), ENV.fetch('GOOGLE_OAUTH_CLIENT_SECRET', nil), {
|
|
provider_ignores_state: true
|
|
}
|
|
end
|