Skip to content

isExpired

isExpired(client, options): Promise<boolean>

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

Check if the session key is expired.

Parameter Type Description
client Client<Transport, Chain> The client to use to check if the session key is expired.
options { address: `0x${string}`; contractAddress?: `0x${string}`; permission: 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 The session key permission.
options.sessionKeyAddress `0x${string}` The address of the session key.

Promise<boolean>

Whether the session key is expired.