Batched Session Validation
This module works hand in hand with the Session Key Manager Module. It allows for multiple session validation modules to be activated for a user.
Installation
- npm
- yarn
- pnpm
npm install @biconomy/modules
yarn add @biconomy/modules
pnpm add @biconomy/modules
Integration
Integration is the same as using the Session Key Manager Module with the additional step of starting a session router module.
const sessionModule = await SessionKeyManagerModule.create({
moduleAddress: DEFAULT_SESSION_KEY_MANAGER_MODULE,
smartAccountAddress: address,
});
const sessionRouterModule = await BatchedSessionRouterModule.create({
moduleAddress: routerModuleAddr,
sessionKeyManagerModule: sessionModule,
smartAccountAddress: saAddress,
});
Implementation of this is similar to the Session Key Manager module guide - a full timplementation example is shown here