Only write refresh token if set