mirror of
https://github.com/wasp-lang/wasp.git
synced 2025-01-05 17:01:34 +03:00
Update documentation for the signup action (#757)
* Update documentation for signup() * Update wording based on feedback Co-authored-by: sgarcia <sgarcia@pop-os.localdomain>
This commit is contained in:
parent
8cd5220293
commit
76e1cf026f
@ -839,6 +839,7 @@ The quickest way to get started is by using the following API generated by Wasp:
|
||||
- Signup and Login forms at `@wasp/auth/forms/Signup` and `@wasp/auth/forms/Login` routes
|
||||
- `logout` function
|
||||
- `useAuth()` React hook
|
||||
**NOTE:** If the signup is successful, the Signup form will automatically log in the user.
|
||||
|
||||
Check our [Todo app tutorial](/docs/tutorials/todo-app/auth) to see how it works. See below for detailed specification of each of these methods.
|
||||
|
||||
@ -909,7 +910,7 @@ Login is a regular action and can be used directly from the frontend.
|
||||
|
||||
|
||||
### `signup()`
|
||||
An action for signing in in the user.
|
||||
An action for signing up the user. This action does not log in the user, you still need to call `login()`.
|
||||
```js
|
||||
signup(userFields)
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user