File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed
Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change 11defmodule CodeCorps.GitHub do
22 alias CodeCorps.GitHub.API.Headers
33
4- @ client_id Application . get_env ( :code_corps , :github_app_client_id )
5- @ client_secret Application . get_env ( :code_corps , :github_app_client_secret )
6-
7- @ base_access_token_params % {
8- client_id: @ client_id ,
9- client_secret: @ client_secret
10- }
11-
124 defmodule APIErrorObject do
135 @ moduledoc """
146 Represents an error object from the GitHub API.
@@ -168,8 +160,11 @@ defmodule CodeCorps.GitHub do
168160
169161 @ spec build_access_token_params ( String . t , String . t ) :: map
170162 defp build_access_token_params ( code , state ) do
171- @ base_access_token_params
172- |> Map . put ( :code , code )
173- |> Map . put ( :state , state )
163+ % {
164+ client_id: Application . get_env ( :code_corps , :github_app_client_id ) ,
165+ client_secret: Application . get_env ( :code_corps , :github_app_client_secret ) ,
166+ code: code ,
167+ state: state
168+ }
174169 end
175170end
You can’t perform that action at this time.
0 commit comments