Skip to content

Commit

Permalink
Pass authorizeVersion == 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusx1211 committed Jun 28, 2023
1 parent 91756e6 commit 83e8bf7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/provider/src/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,11 @@ export class Wallet implements WalletProvider {
}

connect = async (options?: ConnectOptions): Promise<ConnectDetails> => {
if (options && options?.authorizeVersion === undefined) {
// Populate default authorize version if not provided
options.authorizeVersion = 2
}

if (options?.refresh === true) {
this.disconnect()
}
Expand Down

0 comments on commit 83e8bf7

Please sign in to comment.