Skip to content

Commit

Permalink
feat: allow signtypedata
Browse files Browse the repository at this point in the history
  • Loading branch information
eruizgar91 committed Jan 21, 2025
1 parent 843cf83 commit dae593f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nevermined-io/sdk",
"version": "3.0.49-rc6",
"version": "3.0.49-rc7",
"description": "Javascript SDK for connecting with Nevermined Data Platform ",
"main": "./dist/node/sdk.js",
"typings": "./dist/node/sdk.d.ts",
Expand Down
7 changes: 5 additions & 2 deletions src/nevermined/NvmApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ export class NvmApp {
* @returns An object containing the marketplace authentication token, user account, and zeroDev signer account (if applicable).
*/
public async connect(
account: string | NvmAccount | SmartAccount<any>,
account: string | NvmAccount | any,
connectorType?: string,
message?: string,
config?: NeverminedOptions,
initOptions?: NeverminedInitializationOptions,
Expand Down Expand Up @@ -180,7 +181,9 @@ export class NvmApp {
this.loginCredentials = config.marketplaceAuthToken
} else {
const clientAssertion = await this.fullSDK.utils.jwt.generateClientAssertion(
this.userAccount,
connectorType && connectorType === 'Web3Auth'
? this.userAccount
: NvmAccount.fromAddress(account.selectedAddress),
message,
)

Expand Down

0 comments on commit dae593f

Please sign in to comment.