# Invalid token passed?

**URL:** <https://discuss.huggingface.co/t/invalid-token-passed/22711>\
**Category:** Beginners\
**Created:** [September 7, 2022, 9:57pm UTC](https://discuss.huggingface.co/t/invalid-token-passed/22711 "2022-09-07T21:57:52Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Vonvorx](https://avatars.discourse-cdn.com/v4/letter/v/d9b06d/32.png) [@Vonvorx](https://discuss.huggingface.co/u/Vonvorx)\
**Post date:** [October 14, 2022, 4:02am UTC](https://discuss.huggingface.co/t/invalid-token-passed/22711/9 "2022-10-14T04:02:22Z")

</div>

I think I had the same problem and the issue was I didn’t have git installed ([which I inferred from here](https://discuss.huggingface.co/t/how-to-login-to-huggingface-hub-with-access-token/22498/17)). So I installed git and configured it (based on [robotically following the instructions here](https://www.activestate.com/resources/quick-reads/pip-install-git/)), and that still didn’t work. So I closed the command prompt window, opened it again, got the environment up and running again, did the huggingface-cli login bit again and it worked!

@Stirby

---

_[View the full topic](https://discuss.huggingface.co/t/invalid-token-passed/22711)._
