Refactored refresh_token POST call