function createUser
createUser(
inviterId: string | null
): Promise<User>

Creates a user with the user role, invited by inviterId, for POST /api/users. The caller has validated request and claimed the invite.

Parameters

inviterId: string | null

Return Type

Promise<User>

Throws

APIException

409 when the username or the email is taken, in any case, or the username is someone's former name.

Usage

import { createUser } from "api/services/user-service.ts";