function getUserByUsername
getUserByUsername(username: string): User

Returns the user named username now, in any case, with their hash and email. Signing in takes it: a former name doesn't sign in.

Parameters

username: string

Return Type

Throws

APIException

404 when there is no such user.

Usage

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