Pip install with gated spacy model

I have uploaded a spaCy model to the HF hub following the docs:

Installing the model with !pip install https://huggingface.co/.../my_model.whl works, if the model is public.

However, when the model is gated, I get prompted for username and password. Upon entering my HF credentials, I am getting an authentication error 401 Error, Credentials not correct.

Is there some way to make installing models from the Hub with pip work with gated models?