# Recreating Auth0 Login and Logout with Xano API endpoints

**URL:** <https://community.weweb.io/t/recreating-auth0-login-and-logout-with-xano-api-endpoints/1374>\
**Category:** Ask us anything\
**Created:** [October 27, 2022, 8:06pm UTC](https://community.weweb.io/t/recreating-auth0-login-and-logout-with-xano-api-endpoints/1374 "2022-10-27T20:06:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RCS](https://avatars.discourse-cdn.com/v4/letter/r/d2c977/32.png) [@RCS](https://community.weweb.io/u/RCS)\
**Post date:** [October 27, 2022, 8:06pm UTC](https://community.weweb.io/t/recreating-auth0-login-and-logout-with-xano-api-endpoints/1374/1 "2022-10-27T20:06:03Z")

</div>

Hi,

I am currently trying to authenticate users via APIs to my xano backend endpoints. I am using the Xano Auth0 plugin in the backend, because I want to have my user table in Xano not Auth0, while using Auth0 login. The Auth0 Weweb plugin does not call xano apis, therefore I am trying to set up the same setup but by calling Xano endpoints that were created by their Auth0 plugin.

This is what my workflow for login currently looks like. I need to open up an external page, parse the resulting URL after login and use that as a variable for the ‘cont’ step to receive an authentication token. The problem I’m having is that I can’t test each step and troubleshoot past opening up the new page, because it exits me out of the workflow editor. I know though that I’m not getting to the 3rd action ‘cont’ because that is where my user table in xano should be updated and I don’t see that occurring. I can’t tell where it is going wrong between action 2 and 3.

 ![Screenshot 2022-10-31 at 3.32.35 PM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/a4570350fcd84ad3d567eef03db3934357bc0808.png)  
 ![Screenshot 2022-10-31 at 3.37.42 PM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/2/266518d887190a6e41a8c0d38fc01f9172b8b11b.png)  
 ![Screenshot 2022-10-31 at 3.41.22 PM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/e/e4b3f4ece2da1cdba6715d8061db057a785e0e6f.png)

I was wondering if the Auth0 plugin code could be shared so that I can just edit the API endpoints, or just to see so I can copy the way they get a popup to an external page and record the return from that page.

---

<div class="post-metadata">

**Author:** ![RCS](https://avatars.discourse-cdn.com/v4/letter/r/d2c977/32.png) [@RCS](https://community.weweb.io/u/RCS)\
**Post date:** [October 31, 2022, 10:53pm UTC](https://community.weweb.io/t/recreating-auth0-login-and-logout-with-xano-api-endpoints/1374/2 "2022-10-31T22:53:45Z")

</div>

Just found this response, so I believe this would work better than my method of brute forcing a workflow. I believe the xano social logins update would work as well.

> [@LinkedIn OAuth with Xano](https://community.weweb.io/t/linkedin-oauth-with-xano/1303/2):
>
> Hi @noncodeur wave Adding LinkedIn OAuth via Xano to WeWeb is a bit of a hassle at the moment unfortunately. This [thread about Facebook OAuth](https://community.weweb.io/t/how-do-i-use-xana-facebook-oauth/335) might help if you’re in a hurry. If you have some leeway in terms of timing, we plan to release an update to the Xano Auth plugin by mid-November to make the process much easier.
