Files
Eric Tuvesson 53f0d6320e Initial commit
Co-Authored-By: kotte <14197736+mrtamagotchi@users.noreply.github.com>
Co-Authored-By: mikaeltellhed <2311083+mikaeltellhed@users.noreply.github.com>
Co-Authored-By: Tore Knudsen <18231882+torekndsn@users.noreply.github.com>
Co-Authored-By: Michael Cartner <32543275+michaelcartner@users.noreply.github.com>
2023-09-05 12:08:55 +02:00

2.3 KiB

title, hide_title
title hide_title
Current User true

Current User

This component is used to fetch information from the current logged in users /auth/me path in Xano.

On a request it checks if the user is still logged in by looking for a valid authToken. The authToken is automatically generated when the user is logged in.

Please note that Xano Client needs to be set up in your app before you can properly use this component.

Inputs

Signals Description
Fetch Send a Signal to this input to retrieve the data.

Outputs

Data Description
Logged In true if the user is logged in, false if not.
Xano ID The users ID.
Email The users email.
User Data All the data retrieved from the /auth/me endpoint of the logged in user.
Signals Description
Success Sends a signal when the request succeeded.
Failure Sends a signal when an error occurred, or if the authToken is expired, and logs an error message in the console.