core.medplumclient.getprofileasync | Medplum

MedplumClient.getProfileAsync() method

Returns the current user profile resource, retrieving from the server if necessary. This method waits for loading promises.

Signature:

getProfileAsync(): Promise<WithId<ProfileResource> | undefined>;

Returns:

Promise< WithId < ProfileResource > | undefined>

The current user profile resource.