User
This node provides access to the current user's data and authentication state.
The User node is the central access point for the logged-in user's profile.
The User node represents the currently authenticated user. It provides outputs for standard fields (Username, Email) and dynamic outputs for any custom fields in your _User collection. It also emits signals when the user logs in or out.
Actions
| Signal | Description |
|---|
| Fetch | Manually refreshes the user data from the server. |
Outputs
General
| Data | Description |
|---|
| Id | The unique ID of the current user. |
| Username | The current user's username. |
| Email | The current user's email address. |
| Authenticated | Boolean. True if a user is currently logged in. |
Properties
| Data | Description |
|---|
| * | Dynamic outputs for custom user fields (e.g., "Avatar", "Role"). |
Events
| Signal | Description |
|---|
| Logged In | Triggered when a user successfully logs in. |
| Logged Out | Triggered when the user logs out. |
| Session Lost | Triggered if the session expires or is invalidated. |
| Fetched | Triggered when data is refreshed. |
| Changed | Triggered when any user property changes. |
Usage
Showing User Info
- Connect Username to a Text node in your header.
- Connect Avatar (custom field) to an Image node.
Conditional Logic
- Connect Authenticated to an If node.
- If True -> Show "Dashboard".
- If False -> Show "Login Page".
Detailed Behavior
- Global State: This node reflects the global authentication state. If you have multiple User nodes, they all update simultaneously.
- Real-Time: Listens for changes. If the user updates their profile (e.g., via Set User Properties), this node updates immediately.
Troubleshooting
- No Data: If Authenticated is false, all other data outputs will be undefined.