Skip to main content

core.medplumclient.processcode

Home > @medplum/core > MedplumClient > processCode

MedplumClient.processCode() method

Processes an OAuth authorization code. See: https://openid.net/specs/openid-connect-core-1\_0.html\#TokenRequest

Signature:

processCode(code: string, loginParams?: Partial<BaseLoginRequest>): Promise<ProfileResource>;

Parameters

Parameter

Type

Description

code

string

The authorization code received by URL parameter.

loginParams

Partial<BaseLoginRequest>

(Optional) Optional login parameters.

Returns:

Promise<ProfileResource>

The user profile resource.