Skip to content

Commit

Permalink
Improve a little bit the codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrodevs committed Sep 20, 2023
1 parent 78e5db0 commit 34a6652
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions lib/ueberauth/strategy/google/oauth.ex
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,14 @@ defmodule Ueberauth.Strategy.Google.OAuth do
"""
def client(opts \\ []) do
config = Application.get_env(:ueberauth, __MODULE__, [])

opts =
@defaults
|> Keyword.merge(config)
|> Keyword.merge(opts)
|> resolve_values()
|> generate_secret()

json_library = Ueberauth.json_library()

OAuth2.Client.new(opts)
@defaults
|> Keyword.merge(config)
|> Keyword.merge(opts)
|> resolve_values()
|> generate_secret()
|> OAuth2.Client.new()
|> OAuth2.Client.put_serializer("application/json", json_library)
end

Expand Down

0 comments on commit 34a6652

Please sign in to comment.