From 83e8bf7a1f6d2544fede3d44ba8f6b19722c25ca Mon Sep 17 00:00:00 2001 From: Agustin Aguilar Date: Wed, 28 Jun 2023 18:21:47 +0000 Subject: [PATCH] Pass authorizeVersion == 2 --- packages/provider/src/wallet.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/provider/src/wallet.ts b/packages/provider/src/wallet.ts index 7de77b70c..adec7eaa4 100644 --- a/packages/provider/src/wallet.ts +++ b/packages/provider/src/wallet.ts @@ -288,6 +288,11 @@ export class Wallet implements WalletProvider { } connect = async (options?: ConnectOptions): Promise => { + if (options && options?.authorizeVersion === undefined) { + // Populate default authorize version if not provided + options.authorizeVersion = 2 + } + if (options?.refresh === true) { this.disconnect() }