passing variables in order to get the refresh_token