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>
36 lines
1.8 KiB
Markdown
36 lines
1.8 KiB
Markdown
---
|
|
title: authToken Refresh
|
|
hide_title: true
|
|
---
|
|
|
|
# authToken Refresh
|
|
|
|
This component is used to automatically refresh the user **authToken**.
|
|
|
|
<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.
|
|
|
|
## Inputs
|
|
|
|
| Data | Description |
|
|
| ----------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
|
|
| <span className="ndl-data">TTL</span> | Sets the duration before refreshing the authToken. It is commonly set to half of the token duration. |
|
|
| <span className="ndl-data">Endpoint Path</span> | Sets the API endpoint path (used with the `API Group Base URL`) to refresh the user authToken. |
|
|
|
|
| Signals | Description |
|
|
| ----------------------------------------- | ---------------------------- |
|
|
| <span className="ndl-signal">Start</span> | Starts the refresh sequence. |
|
|
| <span className="ndl-signal">Stop</span> | Stops the refresh sequence. |
|
|
|
|
## Outputs
|
|
|
|
| Signals | Description |
|
|
| ------------------------------------------- | -------------------------------------------------------------------------------- |
|
|
| <span className="ndl-signal">Success</span> | Sends a signal when the request succeeded. |
|
|
| <span className="ndl-signal">Failure</span> | Sends a signal when an error occurred, and logs an error message in the console. |
|