## MedplumClient.isAuthenticated() method

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

**Signature:**

```typescript
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.**

- [MedplumClient.isAuthenticated() method](/content/docs/sdk/core.medplumclient.isauthenticated#medplumclientisauthenticated-method/index.html)
- [Parameters](/content/docs/sdk/core.medplumclient.isauthenticated#parameters/index.html)
