Fixed an issue that caused the user to not be authenticated when
using websockets.