File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @nevermined-io/sdk" ,
3
- "version" : " 3.0.49-rc6 " ,
3
+ "version" : " 3.0.49-rc7 " ,
4
4
"description" : " Javascript SDK for connecting with Nevermined Data Platform " ,
5
5
"main" : " ./dist/node/sdk.js" ,
6
6
"typings" : " ./dist/node/sdk.d.ts" ,
Original file line number Diff line number Diff line change @@ -149,7 +149,8 @@ export class NvmApp {
149
149
* @returns An object containing the marketplace authentication token, user account, and zeroDev signer account (if applicable).
150
150
*/
151
151
public async connect (
152
- account : string | NvmAccount | SmartAccount < any > ,
152
+ account : string | NvmAccount | any ,
153
+ connectorType ?: string ,
153
154
message ?: string ,
154
155
config ?: NeverminedOptions ,
155
156
initOptions ?: NeverminedInitializationOptions ,
@@ -180,7 +181,9 @@ export class NvmApp {
180
181
this . loginCredentials = config . marketplaceAuthToken
181
182
} else {
182
183
const clientAssertion = await this . fullSDK . utils . jwt . generateClientAssertion (
183
- this . userAccount ,
184
+ connectorType && connectorType === 'Web3Auth'
185
+ ? this . userAccount
186
+ : NvmAccount . fromAddress ( account . selectedAddress ) ,
184
187
message ,
185
188
)
186
189
You can’t perform that action at this time.
0 commit comments