lib/omniauth/strategies/amazon.rb in omniauth-amazon-1.0.0 vs lib/omniauth/strategies/amazon.rb in omniauth-amazon-1.0.1

- old
+ new

@@ -20,10 +20,10 @@ :scope => 'profile postal_code' } def build_access_token token_params = { - :redirect_uri => callback_url, + :redirect_uri => callback_url.split('?').first, :client_id => client.id, :client_secret => client.secret } verifier = request.params['code'] client.auth_code.get_token(verifier, token_params)