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

ParameterTypeDescription
codestringThe authorization code received by URL parameter.
loginParamsPartial<BaseLoginRequest>(Optional) Optional login parameters.

Returns:

Promise<ProfileResource>

The user profile resource.