All sorts of translucent stuff will bend light differently depending on molecular arrangement and density.
(Like those old grade-school science projects...
A stick poked downward into a container of water will appear broken at the water's surface, precisely because light reflected from the stick, passing through the water back up into air has been bent.)
Saltwater and not-so-salty water are different materials in this sense, with different densities, and therefore dfferent refractive influences on light.
If you know what the proper refraction index (which tells you how much it bends light) for proper saltwater is, then a device measuring refraction can be used to confirm that you indeed have proper saltwater. (Certainly, temperature affects a liquid's density, and will affect its refractive effect on light.)
In many
refractometers, light is bounced off the sample, and the device differentiates between light bounced right off the sample's surface, and light that has penetrated and THEN bounced back. Refraction will ensure a difference in the angles at which those two kinds of returned light come, and the device uses that difference to determine the sample's refractive index (Snell's Law, and all that.)
hth,
horge