Skip to content

Commit afe53de

Browse files
Fix error
1 parent 1adead9 commit afe53de

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

deps/oauth2_client/src/oauth2_client.erl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ get_access_token(OAuthProvider, Request) ->
3333
Header = [],
3434
Type = ?CONTENT_URLENCODED,
3535
Body = build_access_token_request_body(Request),
36-
HTTPOptions = get_httpc_option_ssl_options_if_any(OAuthProvider) ++
37-
get_httpc_option_timeout_of_default(Request#access_token_request.timeout),
36+
HTTPOptions =
37+
map_ssl_options_to_httpc_option(OAuthProvider) ++
38+
map_timeout_to_httpc_option(Request#access_token_request.timeout),
3839
Response = http_post(URL, Header, Type, Body, HTTPOptions,
3940
OAuthProvider#oauth_provider.proxy_options),
4041
parse_access_token_response(Response).
@@ -48,7 +49,7 @@ refresh_access_token(OAuthProvider, Request) ->
4849
Type = ?CONTENT_URLENCODED,
4950
Body = build_refresh_token_request_body(Request),
5051
HTTPOptions =
51-
map_ssl_options_to_httpc_option(OAuthProvider#oauth_porvider.ssl_options) ++
52+
map_ssl_options_to_httpc_option(OAuthProvider#oauth_provider.ssl_options) ++
5253
map_timeout_to_httpc_option(Request#refresh_token_request.timeout),
5354
Response = http_post(URL, Header, Type, Body, HTTPOptions,
5455
OAuthProvider#oauth_provider.proxy_options),

0 commit comments

Comments
 (0)