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

Parameter

Type

Description

accessToken

string

The new access token.

refreshToken

string

(Optional) Optional refresh token.

Returns:

void