Consult applicable codes before installing
When installing
Damp and Wet Locations
According to the National
Plug-In Lighting
Should you wish to use lighting that plugs into a wall receptacle, such as a small light-sensitive night light, follow the NEC's specific regulations for proper receptacles and outlets. In no cases may receptacles be placed within the shower and tub area or within the 3 by 8 foot space extending outwards. While you may purchase receptacles intended for "damp or wet locations," they are intended to serve outdoors, never within shower/bath areas.
Bathroom GFCIs
When plugging lighting, such as night lights, into bathroom receptacles, ensure that the devices are grounded and that they use ground fault circuit interrupters. GFCIs function by interrupting the electrical flow whenever they detect that the circuit has been brought to "ground." In other words, if you accidentally interfere with the circuit, splashing water against exposed wiring, for example, the electricity would short out before the electricity could pass through the water and/or yourself. According to the NEC, all bathrooms must have GFCI interrupters. Install at least one 20-ampere electrical outlet in any bathroom, and use it exclusively for lighting or other devices used within the bathroom. Conversely, do not plug bathroom lighting into an outlet located outside the bathroom. At least one electrical outlet must be placed within 3 feet of the bathroom's washbasin or sink. If you install a lot of lighting in the bathroom, in combination with high-power heat lamps or other devices, you may require more than one circuit. Each circuit must have a GFCI interrupter.
Tags: bathroom lighting, consult with, install lighting, Electrical Code, electrical outlet, have GFCI