Implemented auth support for chat