401 unauthorized with Valid token

I am getting 401 unauthorized with every request i make with a token. When i used the same token in postman and make request, it works fine. Any ideas what its happening?

Do you perhaps have an example of one of the requests you’re making that you’re getting a 401 on?