function getUserById
getUserById(userId: string): User

Returns user userId, with their hash and email.

Parameters

userId: string

Return Type

Throws

APIException

404 when there is no such user.

Usage

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