Works only local auth