Skip to content

Commit

Permalink
Merge pull request #285 from spyesx/main
Browse files Browse the repository at this point in the history
docs: clarify the use of useDirectusAuth().createUser() and a static …
  • Loading branch information
Intevel authored Jan 3, 2025
2 parents 706fa04 + 270c61d commit 809d25a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/content/2.composables/1.useDirectusAuth.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ const onSubmit = async () => {

Create a new Directus user, can also be used as `register()`. **Email and password are required**, partial user object is given.

May requires the module's option [`token`](/getting-started/options#token) to be set if you need to create a user sign in form for example.

- **Arguments:**
- data: [`DirectusUserCreation`](https://github.com/Intevel/nuxt-directus/blob/main/src/runtime/types/index.d.ts#L95)
- **Returns:** [`Promise<DirectusUser>`](https://docs.directus.io/reference/system/users/#the-user-object)
Expand Down

0 comments on commit 809d25a

Please sign in to comment.