From 4b6d771cbea445d70a344755abef70c22bc295ee Mon Sep 17 00:00:00 2001 From: William Hua Date: Tue, 31 Oct 2023 13:46:53 -0400 Subject: [PATCH] auth: Session.singleSigner can use any SapientSigner --- packages/auth/src/session.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/auth/src/session.ts b/packages/auth/src/session.ts index 151a90375..48ea503d3 100644 --- a/packages/auth/src/session.ts +++ b/packages/auth/src/session.ts @@ -3,7 +3,7 @@ import { jwtDecodeClaims } from '@0xsequence/utils' import { Account } from '@0xsequence/account' import { ethers } from 'ethers' import { tracker, trackers } from '@0xsequence/sessions' -import { Orchestrator } from '@0xsequence/signhub' +import { Orchestrator, signers } from '@0xsequence/signhub' import { migrator } from '@0xsequence/migration' import { commons, universal, v1 } from '@0xsequence/core' import { Services, ServicesSettings, SessionJWT, SessionMeta } from './services' @@ -72,7 +72,7 @@ export class Session { static async singleSigner(args: { settings?: Partial - signer: ethers.Signer + signer: ethers.Signer | signers.SapientSigner selectWallet?: (wallets: string[]) => Promise onMigration?: (account: Account) => Promise editConfigOnMigration?: (config: commons.config.Config) => commons.config.Config