Skip to content

Commit

Permalink
Merge d5039b0 into 6f5a8fe
Browse files Browse the repository at this point in the history
  • Loading branch information
brauliobo committed Dec 23, 2013
2 parents 6f5a8fe + d5039b0 commit 8872d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oauth2/strategy/auth_code.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def authorize_url(params={})
# @param [Hash] opts options
# @note that you must also provide a :redirect_uri with most OAuth 2.0 providers
def get_token(code, params={}, opts={})
params = {'grant_type' => 'authorization_code', 'code' => code}.merge(client_params).merge(params)
params = {'grant_type' => 'authorization_code', 'code' => code, 'response_type' => 'token'}.merge(client_params).merge(params)
@client.get_token(params, opts)
end
end
Expand Down

0 comments on commit 8872d62

Please sign in to comment.