Skip to main content

getDefaultProfile

client.profile.getDefaultProfile(): Promise<UserProfile>

Retrieves the default user profile for the current session.

Returns the full profile object including user identity, preferences, and configured defaults. Use this to display user information or check profile settings.

Parameters

No parameters.

Returns

Promise<UserProfile> — A promise that resolves to the user's profile data

Example

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

const client = new CodeBoltClient();

const result = await client.profile.getDefaultProfile();
console.log(result);