Skip to content

useDirectusAuth() with Registration function uses wrong endpoint #292

@AlexVanK

Description

@AlexVanK

Hello,

It seems like the registration function of the useDirectusAuth() composable is not just a an alias for createUser?

  // Alias for createUser
  const register = async (
    data: DirectusRegisterCredentials
  // eslint-disable-next-line require-await
  ): Promise<DirectusUser> => {
    return createUser(data)
  }

but it uses an other endpoint altogether:
POST /user/register vs POST /user

as described on Direcuts documentation:

Image

This is a bit of a problem because just with the endpoint /user administrators have to go change the write permissions
to the directus_users colleciton.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions