# Unable to authenticate into API

**URL:** <https://community.auth0.com/t/unable-to-authenticate-into-api/108991>\
**Category:** Get Help\
**Tags:** apis, application\
**Created:** [June 9, 2023, 8:59pm UTC](https://community.auth0.com/t/unable-to-authenticate-into-api/108991 "2023-06-09T20:59:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![simonprice33](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/simonprice33/32/47938_2.png) [@simonprice33](https://community.auth0.com/u/simonprice33)\
**Post date:** [June 9, 2023, 8:59pm UTC](https://community.auth0.com/t/unable-to-authenticate-into-api/108991/1 "2023-06-09T20:59:56Z")

</div>

Hi,

I am trying to follow the example here [React with React Router 6 (JavaScript) + ASP.NET Core (C#) Code Sample: Basic Access Control for Hello World Full-Stack App](https://developer.auth0.com/resources/code-samples/full-stack/hello-world/basic-access-control/spa/react-javascript/aspnet-core-csharp) to understand how I can use React with Auh0 and .Net core.

I have followed the instructions on the page, but when I authenticate in passed lock and try and make api calls this is not working and I am getting a 401 response.

Looking further into the example there is nothing that is actually passing over the token to the api, but if I call getAccessTokenSilently and then test the token using postman I still get 401 .

I would be grateful for your support in this matter as I want to use Auth0

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 21, 2023, 7:23pm UTC](https://community.auth0.com/t/unable-to-authenticate-into-api/108991/3 "2023-06-21T19:23:10Z")

</div>

Hi @simonprice33,

I’m here to help!

Is there any more info with the 401 response? Usually a message is included describing _why_ the access token is not being accepted.

Another thing you should try; plug the token in to [jwt.io](http://jwt.io) and make sure it has all of the correct scopes and claims.

Let me know!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [July 20, 2023, 3:35pm UTC](https://community.auth0.com/t/unable-to-authenticate-into-api/108991/4 "2023-07-20T15:35:33Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
