Skip to content

Commit dae593f

Browse files
committed
feat: allow signtypedata
1 parent 843cf83 commit dae593f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nevermined-io/sdk",
3-
"version": "3.0.49-rc6",
3+
"version": "3.0.49-rc7",
44
"description": "Javascript SDK for connecting with Nevermined Data Platform ",
55
"main": "./dist/node/sdk.js",
66
"typings": "./dist/node/sdk.d.ts",

src/nevermined/NvmApp.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ export class NvmApp {
149149
* @returns An object containing the marketplace authentication token, user account, and zeroDev signer account (if applicable).
150150
*/
151151
public async connect(
152-
account: string | NvmAccount | SmartAccount<any>,
152+
account: string | NvmAccount | any,
153+
connectorType?: string,
153154
message?: string,
154155
config?: NeverminedOptions,
155156
initOptions?: NeverminedInitializationOptions,
@@ -180,7 +181,9 @@ export class NvmApp {
180181
this.loginCredentials = config.marketplaceAuthToken
181182
} else {
182183
const clientAssertion = await this.fullSDK.utils.jwt.generateClientAssertion(
183-
this.userAccount,
184+
connectorType && connectorType === 'Web3Auth'
185+
? this.userAccount
186+
: NvmAccount.fromAddress(account.selectedAddress),
184187
message,
185188
)
186189

0 commit comments

Comments
 (0)