Passing res. to access_token so that an error could be replied to.