# isExpired

> **isExpired**(`client`, `options`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`boolean`\>

Defined in: [packages/synapse-core/src/session-key/authorization-expiry.ts:160](https://github.com/FilOzone/synapse-sdk/blob/7fdc04df4e3c52366a9f0cd55da4c05e20b2ed82/packages/synapse-core/src/session-key/authorization-expiry.ts#L160)

Check if the session key is expired.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `client` | `Client`\<`Transport`, `Chain`\> | The client to use. |
| `options` | \{ `address`: `` `0x${string}` ``; `contractAddress?`: `` `0x${string}` ``; `permission`: [`Permission`](/reference/filoz/synapse-core/session-key/type-aliases/permission/); `sessionKeyAddress`: `` `0x${string}` ``; \} | The options to use. |
| `options.address` | `` `0x${string}` `` | The address of the user account. |
| `options.contractAddress?` | `` `0x${string}` `` | Session key registry contract address. If not provided, the default is the session key registry contract address for the chain. |
| `options.permission` | [`Permission`](/reference/filoz/synapse-core/session-key/type-aliases/permission/) | The session key permission. |
| `options.sessionKeyAddress` | `` `0x${string}` `` | The address of the session key. |

## Returns

[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`boolean`\>

Whether the session key is expired.

## Throws

- [isExpired.ErrorType](/reference/filoz/synapse-core/session-key/namespaces/isexpired/type-aliases/errortype/) if the read contract fails.