fix lib auth