mirror of
https://github.com/noodlapp/noodl-docs.git
synced 2026-01-12 07:12:53 +01:00
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>
This commit is contained in:
44
library/prefabs/xano/components/xano-log-out/README.md
Normal file
44
library/prefabs/xano/components/xano-log-out/README.md
Normal file
@@ -0,0 +1,44 @@
|
||||
---
|
||||
title: Log Out
|
||||
hide_title: true
|
||||
---
|
||||
|
||||
# Log Out
|
||||
|
||||
This component is used to log in a user.
|
||||
|
||||
<div className="ndl-image-with-background xl">
|
||||
|
||||

|
||||
|
||||
</div>
|
||||
|
||||
> Please note that [Xano Client](/library/prefabs/xano/components/setup-xanoclient/) needs to be set up in your app before you can properly use this component.
|
||||
|
||||
## On success
|
||||
|
||||
When a user has successfuly been logged out the **Log Out** component will empty the Noodl Object with the id `currentUser`.
|
||||
|
||||
A successful signup will also trigger a `Xano User Logged Out` event. You can hook into to this event anywhere in your app using a [Receive Event](/nodes/events/receive-event/) node. This event can be used to stop the **authToken** refresh.
|
||||
|
||||
## If you are refreshing the authToken
|
||||
|
||||
Don't forget to turn off the **authToken** refresh if you have added that to your app. This can be done by placing the following nodes in the **home component**:
|
||||
|
||||
<div className="ndl-image-with-background l">
|
||||
|
||||

|
||||
|
||||
</div>
|
||||
|
||||
## Inputs
|
||||
|
||||
| Signals | Description |
|
||||
| -------------------------------------- | ------------------------------------------------------- |
|
||||
| <span className="ndl-signal">Do</span> | Send a Signal to this input to send the logout request. |
|
||||
|
||||
## Outputs
|
||||
|
||||
| Signals | Description |
|
||||
| ------------------------------------------- | ------------------------------------------ |
|
||||
| <span className="ndl-signal">Success</span> | Sends a signal when the request succeeded. |
|
||||
Reference in New Issue
Block a user