mirror of
https://github.com/wahyd4/ocelots.git
synced 2026-08-09 04:56:21 +10:00
12 lines
432 B
Ruby
12 lines
432 B
Ruby
require "google/api_client"
|
|
|
|
Google::APIClient.class_eval do
|
|
def self.build
|
|
client = Google::APIClient.new
|
|
client.authorization.scope = 'https://www.googleapis.com/auth/userinfo.email'
|
|
client.authorization.client_id = ::ENV['GOOGLE_OAUTH_CLIENT_ID']
|
|
client.authorization.client_secret = ::ENV['GOOGLE_OAUTH_CLIENT_SECRET']
|
|
client.authorization.redirect_uri = ::ENV['GOOGLE_OAUTH_REDIRECT']
|
|
client
|
|
end
|
|
end |