update oauth response handler to take an object