Skip to content

Commit

Permalink
Merge pull request #28 from kivra/cd-fix-use-maps
Browse files Browse the repository at this point in the history
fix: allow use of return_maps in options
  • Loading branch information
cdyb-kivra authored Dec 23, 2021
2 parents 47561da + 761b4b7 commit 47ba50a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/oauth2c.erl
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ ensure_client_has_access_token(Client0, Options) ->
Client0
end.

do_retrieve_access_token(Client, Opts) ->
do_retrieve_access_token(Client, Opts0) ->
Opts = Opts0 -- [return_maps], %% Make sure we get a proplist
#{headers := RequestHeaders,
body := RequestBody} = prepare_token_request(Client, Opts),
case restc:request(post, percent, Client#client.auth_url,
Expand Down

0 comments on commit 47ba50a

Please sign in to comment.