Refactored the library to use AuthRequest instead of password when connecting