I'm having an error message working with my User access tokens

Hello, I am following an introductory video from youtube titled:

Hugging Face + Langchain in 5 mins | Access 200k+ FREE AI models for your AI apps

Everything seems to work well, but I encountered this error message related to the bearer token: {“error”:“Authorization header is correct, but the token seems invalid”}
I already tried by creating another token but the error continues.
If anybody could find a solution I would be very grateful.