# 401 Error Fetch User Record

**URL:** <https://community.weweb.io/t/401-error-fetch-user-record/4527>\
**Category:** Ask us anything\
**Tags:** authentication, xano\
**Created:** [September 22, 2023, 4:11pm UTC](https://community.weweb.io/t/401-error-fetch-user-record/4527 "2023-09-22T16:11:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![clone337](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@clone337](https://community.weweb.io/u/clone337)\
**Post date:** [September 22, 2023, 4:11pm UTC](https://community.weweb.io/t/401-error-fetch-user-record/4527/1 "2023-09-22T16:11:08Z")

</div>

Hi  
I’m going thru the tickets tutorial. I am using the Xano Snipit from WeWeb  
When setting up the user authentication, the first two steps, Get authentication Token and Store token test successfully. However I get the 401 error when tring to retrieve the user. ([jane@email.com](mailto:jane@email.com))  
Can someone point me where i should be looking for this error?  
Thanks  
J

 ![Weweb 401 Error](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/3/3a899099508ec8190f3b15db9b712eca8e48684e.jpeg)

---

<div class="post-metadata">

**Author:** ![clone337](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@clone337](https://community.weweb.io/u/clone337)\
**Post date:** [September 27, 2023, 4:18pm UTC](https://community.weweb.io/t/401-error-fetch-user-record/4527/2 "2023-09-27T16:18:15Z")

</div>

Update: When I run in debug on xano it does not return an error.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/18e90dcd78cf2f5a4b94cb8dd16ac29a4588094f.png)

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [September 28, 2023, 3:43pm UTC](https://community.weweb.io/t/401-error-fetch-user-record/4527/3 "2023-09-28T15:43:09Z")

</div>

Hi @clone337 👋

Ok, I just tried in one of my projects and everything works fine so it’s probably not a bug.

Can you check a couple of things?

1- in your “store token” action, are you binding to the result from the previous action?

 ![CleanShot 2023-09-28 at 17.38.59@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/19e80310e3fa39a61719a2a4a70b5a5c4885e415.png)

2- in your plugin configuration, did you update the “User endpoint” with the endpoint from your own Xano project?

 ![CleanShot 2023-09-28 at 17.41.25@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/2/2d57816730f48c0242860ef4f05a077a8c55a6bd.png)

---

<div class="post-metadata">

**Author:** ![clone337](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@clone337](https://community.weweb.io/u/clone337)\
**Post date:** [October 3, 2023, 3:19pm UTC](https://community.weweb.io/t/401-error-fetch-user-record/4527/4 "2023-10-03T15:19:15Z")

</div>

I checked the fields recommended by Joyce, I think they are ok.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/106fb4c2d662988fc94f404fd02e66da50957e6f.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/3/35fd3474a7a9f5693d5fcd0e0297debe59030c09.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/5/582b240a30f0b6db67f6a96d840ee4659c30954c.png)

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [October 3, 2023, 4:24pm UTC](https://community.weweb.io/t/401-error-fetch-user-record/4527/5 "2023-10-03T16:24:25Z")

</div>

Hi @clone337

If you look at my first screenshot, you’ll notice that I bound to `authToken` and the current value only shows the auth token value:

 ![CleanShot 2023-10-03 at 18.21.55@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/8/82e28013f75c5649234806c7947dac6faebe826c.jpeg)

In your screenshot, I can see you bound to the `result`, not the `authToken` inside the result, so the current value is `authToken: "eykj..."` and Xano doesn’t understand what you are asking for because it expects the access token on its own, not the object that contains the access token.

Does that make sense?

---

<div class="post-metadata">

**Author:** ![clone337](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@clone337](https://community.weweb.io/u/clone337)\
**Post date:** [October 4, 2023, 12:11pm UTC](https://community.weweb.io/t/401-error-fetch-user-record/4527/6 "2023-10-04T12:11:23Z")

</div>

Joyce, it makes sense now, I’m good.  
Thank you for your patience!
