# How can I automatically log in with a demo user account on the weweb editor?

**URL:** <https://community.weweb.io/t/how-can-i-automatically-log-in-with-a-demo-user-account-on-the-weweb-editor/3741>\
**Category:** How do I?\
**Tags:** authentication, xano\
**Created:** [August 1, 2023, 12:55pm UTC](https://community.weweb.io/t/how-can-i-automatically-log-in-with-a-demo-user-account-on-the-weweb-editor/3741 "2023-08-01T12:55:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![portanicolas](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/portanicolas/32/4177_2.png) [@portanicolas](https://community.weweb.io/u/portanicolas)\
**Post date:** [August 1, 2023, 12:55pm UTC](https://community.weweb.io/t/how-can-i-automatically-log-in-with-a-demo-user-account-on-the-weweb-editor/3741/1 "2023-08-01T12:55:53Z")

</div>

Hello,

In my application, I have a table that displays data related to a user.

exemple :

- user demo = 12, 45, 78
- user 1 = 19, 21,30
- user 2 = 73, 81, 9

It works very well live on my application, but I’m wondering how to proceed when I’m in the weweb editor to log in as a demo user in order to visually see the data. At the moment, I can’t see anything in the editor because the xano authentication does not provide a valid token.

What could be the solution to this problem?

Thanks for your answer 🙂

---

<div class="post-metadata">

**Author:** ![portanicolas](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/portanicolas/32/4177_2.png) [@portanicolas](https://community.weweb.io/u/portanicolas)\
**Post date:** [August 1, 2023, 3:21pm UTC](https://community.weweb.io/t/how-can-i-automatically-log-in-with-a-demo-user-account-on-the-weweb-editor/3741/2 "2023-08-01T15:21:18Z")

</div>

here is the result when the user is log

 ![Capture d’écran 2023-08-01 à 17.18.37](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/158faa172f026a08a3a2496d6dedaf3d7f90ce02.png)

---

<div class="post-metadata">

**Author:** ![portanicolas](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/portanicolas/32/4177_2.png) [@portanicolas](https://community.weweb.io/u/portanicolas)\
**Post date:** [August 1, 2023, 3:22pm UTC](https://community.weweb.io/t/how-can-i-automatically-log-in-with-a-demo-user-account-on-the-weweb-editor/3741/3 "2023-08-01T15:22:11Z")

</div>

here is the result in weweb editor whitout log

 ![Capture d’écran 2023-08-01 à 17.18.53](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/e/ef8e534d42524d7d18ba28d07dfe5aec60a992a8.png)

---

<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:** [August 3, 2023, 10:16am UTC](https://community.weweb.io/t/how-can-i-automatically-log-in-with-a-demo-user-account-on-the-weweb-editor/3741/4 "2023-08-03T10:16:50Z")

</div>

Hi, I’m not sure to understand. You can’t use your login page in the editor ? Your login action doesn’t work ?

---

<div class="post-metadata">

**Author:** ![portanicolas](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/portanicolas/32/4177_2.png) [@portanicolas](https://community.weweb.io/u/portanicolas)\
**Post date:** [August 3, 2023, 3:40pm UTC](https://community.weweb.io/t/how-can-i-automatically-log-in-with-a-demo-user-account-on-the-weweb-editor/3741/5 "2023-08-03T15:40:49Z")

</div>

hello alexis, yes I use the login page in the editor to connect however I was wondering if there wasn’t an alternative in a xano auth configuration to connect automatically?

---

<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:** [August 3, 2023, 3:55pm UTC](https://community.weweb.io/t/how-can-i-automatically-log-in-with-a-demo-user-account-on-the-weweb-editor/3741/6 "2023-08-03T15:55:16Z")

</div>

Not at the moment. But its a good suggestion. What you could do instead is set an On App Load workflow, add a login action and a path through so the action is triggered only in the editor. You can bind the variable browser-\>environment inside the explorer. The issue with this method is your demo hardcoded email/password will be readable by any hacker in your app. Because the workflow even if not executed will still be there in the published code.
