# Why so many auth.me calls to Xano?

**URL:** <https://community.weweb.io/t/why-so-many-auth-me-calls-to-xano/6333>\
**Category:** Ask us anything\
**Tags:** authentication, xano\
**Created:** [January 12, 2024, 1:43am UTC](https://community.weweb.io/t/why-so-many-auth-me-calls-to-xano/6333 "2024-01-12T01:43:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericp](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ericp](https://community.weweb.io/u/ericp)\
**Post date:** [January 12, 2024, 1:43am UTC](https://community.weweb.io/t/why-so-many-auth-me-calls-to-xano/6333/1 "2024-01-12T01:43:06Z")

</div>

I’m trying to troubleshoot an issue some users are having where a page is waiting on a response from Xano and it never comes. In my search for what is causing this, I’ve noticed instances where the [auth.me](http://auth.me) endpoint is called several times when changing pages. In this instance below it was called 4x.

I’m using the Xano auth plugin. Is this normal? Could this be causing some kind of rate-limit issue? I’m on a paid plan with Xano, so there shouldn’t be a rate limit.

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

---

<div class="post-metadata">

**Author:** ![ericp](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ericp](https://community.weweb.io/u/ericp)\
**Post date:** [January 12, 2024, 1:54am UTC](https://community.weweb.io/t/why-so-many-auth-me-calls-to-xano/6333/2 "2024-01-12T01:54:06Z")

</div>

Just noticing that on this particular page change, there are 5 endpoints called for data on the new page. 4 of them require authentication. Is this why there were 4 auth/me calls? If so, why isn’t this more efficient?

---

<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:** [January 18, 2024, 1:51pm UTC](https://community.weweb.io/t/why-so-many-auth-me-calls-to-xano/6333/3 "2024-01-18T13:51:54Z")

</div>

Hi @ericp 👋

Were you able to uncover what was causing this?

Just created a Xano + WeWeb from scratch and didn’t see the issue.

My flow looks like this:

- login with email and password on Login page in WeWeb
- successful login redirects to user profile page
- user profile page displays personalized message to the user

 ![CleanShot 2024-01-18 at 14.48.13@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/5/5650b9097aaacc95e22a32553f683d54bb66dfad.png)

In my WeWeb logs, it looks like this:

 ![CleanShot 2024-01-18 at 14.47.27@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/2/2aaa50b7f0e12c9cb967ca393094dde91273f1ac.png)

In my Xano request history, it looks like this:

 ![CleanShot 2024-01-18 at 14.44.44@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/6/6936119fcf2aa46469f5e40f5adacd7bf980f27f.png)

Is it possible you are triggering several workflows or several login calls on a single form or on a form container and a button inside that form at the same time for example?

---

<div class="post-metadata">

**Author:** ![ericp](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ericp](https://community.weweb.io/u/ericp)\
**Post date:** [January 18, 2024, 2:32pm UTC](https://community.weweb.io/t/why-so-many-auth-me-calls-to-xano/6333/4 "2024-01-18T14:32:31Z")

</div>

Thank you Joyce for looking into this. It appears the issue occurs when an API call to Xano that has user authentication enabled triggers an additional [auth.me](http://auth.me) call from WeWeb. My login flow redirects to a page that has information about the user’s company which is stored in a ‘Company’ table that has user auth enabled. As you can see from the Xano log attached, it’s only occurring in the published app, not inside the WeWeb editor.

I see this on other pages within the app where a logged in user goes to a page that has several api calls to pull data from different tables that are secured and I’ll see additional [auth.me](http://auth.me) calls in the Xano log even though the user is logged in.

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

---

<div class="post-metadata">

**Author:** ![ericp](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ericp](https://community.weweb.io/u/ericp)\
**Post date:** [January 18, 2024, 2:34pm UTC](https://community.weweb.io/t/why-so-many-auth-me-calls-to-xano/6333/5 "2024-01-18T14:34:46Z")

</div>

And if it helps investigating this on your side, I have disabled automatic fetching of collections and use workflow actions to fetch as-needed. So maybe the manual fetch action isn’t including the auth-token??

---

<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:** [January 22, 2024, 10:46am UTC](https://community.weweb.io/t/why-so-many-auth-me-calls-to-xano/6333/6 "2024-01-22T10:46:33Z")

</div>

Ah ok, got it! Let me ask the tech team if that’s the expected behavior or something we should be optimizing on our side.

---

<div class="post-metadata">

**Author:** ![kyanaloe](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/kyanaloe/32/1076_2.png) [@kyanaloe](https://community.weweb.io/u/kyanaloe)\
**Post date:** [May 22, 2024, 6:10pm UTC](https://community.weweb.io/t/why-so-many-auth-me-calls-to-xano/6333/7 "2024-05-22T18:10:02Z")

</div>

Hi @Joyce, any updates on this?
