Skip to main content

checkIfUserExistsLocally

client.users.checkIfUserExistsLocally(data: CheckUserExistsRequest): Promise<object>

Checks if a user exists locally in the system.

Verifies whether a user with the specified credentials or identifier is already present in the local user store. Useful for preventing duplicate registrations during setup.

Parameters​

ParameterTypeRequiredDescription
dataCheckUserExistsRequestYesRequest containing user identification information

Returns​

Promise<object> — A promise that resolves to an object with an 'exists' boolean flag

Example​

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.users.checkIfUserExistsLocally(/* CheckUserExistsRequest */);
console.log(result);