# Axios Error when making login request with Xano AUTH plugin

**URL:** <https://community.weweb.io/t/axios-error-when-making-login-request-with-xano-auth-plugin/9734>\
**Category:** Ask us anything\
**Created:** [July 15, 2024, 2:22pm UTC](https://community.weweb.io/t/axios-error-when-making-login-request-with-xano-auth-plugin/9734 "2024-07-15T14:22:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![titus](https://avatars.discourse-cdn.com/v4/letter/t/48db29/32.png) [@titus](https://community.weweb.io/u/titus)\
**Post date:** [July 15, 2024, 2:22pm UTC](https://community.weweb.io/t/axios-error-when-making-login-request-with-xano-auth-plugin/9734/1 "2024-07-15T14:22:37Z")

</div>

Everything was working well, untill a two weeks ago. I logged into weweb and somehow my settings for the Xano auth plugin where empty. I created a new API token in Xano and set up authentication, but I haven’t been able to successfully log in since.

---

<div class="post-metadata">

**Author:** ![Alexis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/alexis/32/13248_2.png) [@Alexis](https://community.weweb.io/u/Alexis)\
**Post date:** [July 15, 2024, 3:14pm UTC](https://community.weweb.io/t/axios-error-when-making-login-request-with-xano-auth-plugin/9734/2 "2024-07-15T15:14:42Z")

</div>

I see “withCredentials: true” meaning you probably toggled the option “send credentials” but this option require a particular setup on xano side, please toggle off this option, it’s only useful to send custom cookie.

![Capture d’écran 2024-07-15 à 17.15.09](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/9/9704e791d81aecc684951daa597ab8df4d874e1a.png)

I removed your screenshot as it contained sensitive informations

---

<div class="post-metadata">

**Author:** ![wilkinson](https://avatars.discourse-cdn.com/v4/letter/w/b38774/32.png) [@wilkinson](https://community.weweb.io/u/wilkinson)\
**Post date:** [July 15, 2024, 4:03pm UTC](https://community.weweb.io/t/axios-error-when-making-login-request-with-xano-auth-plugin/9734/3 "2024-07-15T16:03:02Z")

</div>

Did this solve your problem? I’m facing the same issue and have with credentials off. Was able to use the xano demo website to log in with twitter fine. Simply can’t do it with weweb?

---

<div class="post-metadata">

**Author:** ![wilkinson](https://avatars.discourse-cdn.com/v4/letter/w/b38774/32.png) [@wilkinson](https://community.weweb.io/u/wilkinson)\
**Post date:** [July 15, 2024, 4:11pm UTC](https://community.weweb.io/t/axios-error-when-making-login-request-with-xano-auth-plugin/9734/4 "2024-07-15T16:11:54Z")

</div>

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

This is a snip of my error response. I have the callback url as my weweb editor url as well

---

<div class="post-metadata">

**Author:** ![wilkinson](https://avatars.discourse-cdn.com/v4/letter/w/b38774/32.png) [@wilkinson](https://community.weweb.io/u/wilkinson)\
**Post date:** [July 15, 2024, 4:27pm UTC](https://community.weweb.io/t/axios-error-when-making-login-request-with-xano-auth-plugin/9734/5 "2024-07-15T16:27:59Z")

</div>

So dug into this further, I noticed that the request in the log report from Weweb shows that xano is providing an additional slug to the redirect url. For example, my home editor weweb url is [https://editor.weweb](https://editor.weweb)(dot)io/b7591ea4-08de-4af2-99fb-6edd718e51f8 however the request in weweb shows this url: [https://x8ki-letl-twmt.n7.xano](https://x8ki-letl-twmt.n7.xano)(dot)io/api:CJaexNTY/oauth/twitter/request\_token?redirect\_uri=https:%2F%[2Feditor.weweb.io](http://2Feditor.weweb.io)%2Fb7591ea4-08de-4af2-99fb-6edd718e51f8%2F3517ae00-5cc0-4a6f-bd79-418df8faf85e"

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

When I change the callback url in twitter to the longer editor weweb url xano is creating, the twitter window pops up, I authorize, and I’m redirected to weweb, however my authentication is still false and no new record is created in xano

---

<div class="post-metadata">

**Author:** ![titus](https://avatars.discourse-cdn.com/v4/letter/t/48db29/32.png) [@titus](https://community.weweb.io/u/titus)\
**Post date:** [July 15, 2024, 4:40pm UTC](https://community.weweb.io/t/axios-error-when-making-login-request-with-xano-auth-plugin/9734/6 "2024-07-15T16:40:05Z")

</div>

Thank you for that. I am using the Xano Auth plugin and I cannot find how to toggle the send credentials option.

---

<div class="post-metadata">

**Author:** ![wilkinson](https://avatars.discourse-cdn.com/v4/letter/w/b38774/32.png) [@wilkinson](https://community.weweb.io/u/wilkinson)\
**Post date:** [July 15, 2024, 5:17pm UTC](https://community.weweb.io/t/axios-error-when-making-login-request-with-xano-auth-plugin/9734/7 "2024-07-15T17:17:51Z")

</div>

Should be in your workflow for logging in

---

<div class="post-metadata">

**Author:** ![Alexis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/alexis/32/13248_2.png) [@Alexis](https://community.weweb.io/u/Alexis)\
**Post date:** [July 16, 2024, 8:45am UTC](https://community.weweb.io/t/axios-error-when-making-login-request-with-xano-auth-plugin/9734/8 "2024-07-16T08:45:56Z")

</div>

The short one is your editor link and fallback to your homepage, the longest one include the path of the specified page, you should authorise and use the longest one in your auth provider setting (because when we let you select a redirection page, it’s the longest one that is used)

You can create a ticket on [support.weweb.io](http://support.weweb.io) if you need us to check your setup, please include as many information as possible

---

<div class="post-metadata">

**Author:** ![Alexis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/alexis/32/13248_2.png) [@Alexis](https://community.weweb.io/u/Alexis)\
**Post date:** [July 16, 2024, 8:47am UTC](https://community.weweb.io/t/axios-error-when-making-login-request-with-xano-auth-plugin/9734/9 "2024-07-16T08:47:24Z")

</div>

It could be located in your plugins configurations, there is a global option in the step Global Headers, in both xano and xano auth
