change way to get client in authmanager