isExpired
isExpired(
client,options):Promise<boolean>
Defined in: packages/synapse-core/src/session-key/authorization-expiry.ts:165
Check if the session key is expired.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
client | Client<Transport, Chain> | The client to use. |
options | { address: `0x${string}`; contractAddress?: `0x${string}`; permission: SessionKeyPermissions; 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 | SessionKeyPermissions | The session key permission. |
options.sessionKeyAddress | `0x${string}` | The address of the session key. |
Returns
Section titled “Returns”Promise<boolean>
Whether the session key is expired.
Throws
Section titled “Throws”- isExpired.ErrorType if the read contract fails.