Fix for if condition requiting refresh_token param when refreshing