function assertLocalUser
assertLocalUser(user: User): void

Throws a 400 when user's account lives on another instance (isRemoteUser), whose password, email, avatar and name are that instance's to change. The routes that change them call it first.

Parameters

user: User

Return Type

void

Usage

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