Skip to main content

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

SignalsDescription
FetchSend a Signal to this input to retrieve the data.

Outputs

DataDescription
Logged Intrue if the user is logged in, false if not.
Xano IDThe users ID.
EmailThe users email.
User DataAll the data retrieved from the /auth/me endpoint of the logged in user.
SignalsDescription
SuccessSends a signal when the request succeeded.
FailureSends a signal when an error occurred, or if the authToken is expired, and logs an error message in the console.