Skip to content

SessionKeySigner

Initializes a new instance of a session key signer with the provided configuration. This will set the signerType, storageKey, and storageType. It will also manage the session key, either fetching it from storage or generating a new one if it doesn't exist.

Import

import { SessionKeySigner } from "@account-kit/smart-contracts";

Usage

import { SessionKeySigner } from "@account-kit/smart-contracts";
 
const signer = new SessionKeySigner();

Parameters

config_

SessionKeySignerConfig the configuration for initializing the session key signer