Appearance
ReturnThe
Sign users in and get their info with Xano
Use Xano Auth to sign users in and retrieve the current user in your WeWeb app.
Steps at a glance
- Configure
Xano Authwith yourloginandmeendpoints. - Create a simple sign-in form in the
Interface. - Use the
Loginaction to sign the user in. - Show the signed-in user's information in your app.
1) Configure Xano Auth
Before building the sign-in flow, make sure your Xano project has these endpoints:
loginme
Then in WeWeb:
- Open
Data & API→Authentication, chooseXanoas your auth provider, and connect your Xano instance. - Select your
loginandmeendpoints.
2) Build a simple sign-in form
In the Interface:
- Add inputs for the user's login field (for example email) and password.
- Add a button such as
Sign in. - Create a workflow on button click.
3) Sign the user in
Inside that workflow:
- Add
Xano Auth→Login. - Map the form values to the fields expected by your Xano
loginendpoint. - Test the workflow in preview.
The Login action signs the user in, stores the auth token, and then retrieves the current user.
4) Show the user's information
Once the user is signed in, you can:
- Show user fields in the interface using the current user data
- Protect pages for signed-in users only
- Run
Fetch useron page load when you want to refresh the profile from Xano
Typical things to show:
- Name
- Role or account type
Common pitfalls
The login works but the user data is empty
- Make sure your Xano
meendpoint returns the fields you want to display. - If needed, run
Fetch userafter sign in or on page load.
The me endpoint fails
- Make sure the user is actually signed in first.
- If you use cookies, check your Xano CORS settings and credentials configuration.

