function createRemoteUser
createRemoteUser(
request: { username: string; email: string; },
inviterId: string | null
): User

Creates the account of a user from another instance, named username (their handle here, name@host), with no password, for federation-service.ts, which links it to their identity there in the same transaction. inviterId is whoever invited them, or null when their instance is trusted.

Parameters

request: { username: string; email: string; }
inviterId: string | null

Return Type

Throws

APIException

409 when the handle is or was someone else's.

Usage

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