Skip to main content

core.medplumclient.isauthenticated

Home > @medplum/core > MedplumClient > isAuthenticated

MedplumClient.isAuthenticated() method

Returns whether the client has a valid access token or not.

Signature:

isAuthenticated(gracePeriod?: number): boolean;

Parameters

Parameter

Type

Description

gracePeriod

number

(Optional) Optional grace period in milliseconds. If not specified, uses the client configured grace period (default 5 minutes).

Returns:

boolean

Boolean indicating whether or not the client is authenticated.

**NOTE: Does not check whether the auth token has been revoked server-side.**