First add the dependency to your mix.exs
# /mix.exs
defp deps do
[
...
{:ueberauth_google, "~> 0.10"}
]
end
Then configure Ueberauth within your application
# /config.exs
...
# Ueberauth Config
config :ueberauth, Ueberauth,
providers: [
google:
{Ueberauth.Strategy.Google,
[default_scope: "email profile openid"]
}
]
config :ueberauth, Ueberauth.Strategy.Google.OAuth,
client_id: # generated