Skip to main content

core.medplumclient.setaccesstoken

Home > @medplum/core > MedplumClient > setAccessToken

MedplumClient.setAccessToken() method

Sets the current access token.

Signature:

setAccessToken(accessToken: string, refreshToken?: string): void;

Parameters

ParameterTypeDescription
accessTokenstringThe new access token.
refreshTokenstring(Optional) Optional refresh token.

Returns:

void