Skip to content

isExpired(client, options): Promise<boolean>

Defined in: packages/synapse-core/src/session-key/authorization-expiry.ts:165

Check if the session key is expired.

ParameterTypeDescription
clientClient<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.permissionSessionKeyPermissionsThe session key permission.
options.sessionKeyAddress`0x${string}`The address of the session key.

Promise<boolean>

Whether the session key is expired.