Added a way to pass the mac type when the auth header is created