mirror of
https://github.com/noodlapp/noodl-docs.git
synced 2026-01-12 15:22: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:
40
library/prefabs/xano/components/xano-sign-up/README.md
Normal file
40
library/prefabs/xano/components/xano-sign-up/README.md
Normal file
@@ -0,0 +1,40 @@
|
||||
---
|
||||
title: Sign Up
|
||||
hide_title: true
|
||||
---
|
||||
|
||||
# Sign Up
|
||||
|
||||
This component is used create a new user in Xano.
|
||||
|
||||
<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 new user has successfully been registered the **Sign Up** component will create a Noodl Object with the id `currentUser`. This object contains all the user data retrieved from Xanos `/auth/me` endpoint.
|
||||
|
||||
A successful signup will also trigger a `Xano User Logged In` event. You can hook into to this event anywhere in your app using a [Receive Event](/nodes/events/receive-event/) node.
|
||||
|
||||
## Inputs
|
||||
|
||||
| Data | Description |
|
||||
| ------------------------------------------ | --------------------------------------------- |
|
||||
| <span className="ndl-data">Email</span> | The email of the user you want to sign up. |
|
||||
| <span className="ndl-data">Password</span> | The password of the user you want to sign up. |
|
||||
|
||||
| Signals | Description |
|
||||
| -------------------------------------- | ------------------------------------------------------- |
|
||||
| <span className="ndl-signal">Do</span> | Send a Signal to this input to send the signup request. |
|
||||
|
||||
## 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. |
|
||||
Reference in New Issue
Block a user