mirror of
https://github.com/noodlapp/noodl-docs.git
synced 2026-01-12 23:32:54 +01:00
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>
35 lines
1.6 KiB
Markdown
35 lines
1.6 KiB
Markdown
---
|
|
title: Fetch Current User Profile Data
|
|
hide_title: true
|
|
---
|
|
|
|
# Fetch Current User Auth
|
|
|
|
This component is used to send a request to Supabase and retrieve all profile data on the currently logged in user. After a success it updates the `profile` property on the Noodl object with the id `currentUser`.
|
|
|
|
<div className="ndl-image-with-background">
|
|
|
|

|
|
|
|
</div>
|
|
|
|
> Please note that [Supabase Client](/library/prefabs/supabase/components/setup-client/) needs to be set up in your app before you can properly use this component.
|
|
|
|
## Inputs
|
|
|
|
| Signals | Description |
|
|
| -------------------------------------- | -------------------------------- |
|
|
| <span className="ndl-signal">Do</span> | Triggers the fetch request call. |
|
|
|
|
## Outputs
|
|
|
|
| Data | Description |
|
|
| --------------------------------------- | ---------------------------------------------------- |
|
|
| <span className="ndl-data">Error</span> | Outputs the the error message if the request failed. |
|
|
|
|
| Signals | Description |
|
|
| ------------------------------------------------ | -------------------------------------------------------- |
|
|
| <span className="ndl-signal">Success</span> | Sends a signal if the request is successful. |
|
|
| <span className="ndl-signal">Failure</span> | Sends a signal if the request has failed. |
|
|
| <span className="ndl-signal">No User Data</span> | Sends a signal if there is no user data to be retrieved. |
|