@toruslabs/base-controllers
Advanced tools
Comparing version 5.2.10 to 5.2.12
{ | ||
"name": "@toruslabs/base-controllers", | ||
"version": "5.2.10", | ||
"version": "5.2.12", | ||
"homepage": "https://github.com/torusresearch/controllers#readme", | ||
@@ -26,5 +26,5 @@ "license": "ISC", | ||
"@toruslabs/http-helpers": "^6.0.0", | ||
"@toruslabs/openlogin-jrpc": "^6.2.1", | ||
"@toruslabs/openlogin-utils": "^6.2.0", | ||
"async-mutex": "^0.4.0", | ||
"@toruslabs/openlogin-jrpc": "^6.2.3", | ||
"@toruslabs/openlogin-utils": "^6.2.2", | ||
"async-mutex": "^0.4.1", | ||
"bignumber.js": "^9.1.2", | ||
@@ -67,3 +67,3 @@ "bowser": "^2.11.0", | ||
}, | ||
"gitHead": "c170b92cf147ac486d580bd603e3c606fc2fdf3d" | ||
"gitHead": "0a1a961aca3a7c31d53cc7dda9d9166a2ab7783b" | ||
} |
@@ -39,3 +39,3 @@ import { rpcErrors } from "@metamask/rpc-errors"; | ||
case 418: | ||
throw rpcErrors.internal({ message: `Request is being rate limited.` }); | ||
throw rpcErrors.internal({ message: `Request is being rate limited.`, data: { cause: fetchRes } }); | ||
@@ -42,0 +42,0 @@ case 503: |
@@ -481,2 +481,19 @@ import { get, patch, post, remove } from "@toruslabs/http-helpers"; | ||
} | ||
case ACCOUNT_CATEGORY.MPC: { | ||
if (!metadata.signatures) throw new Error("MPC signatures must be present"); | ||
const response = await post( | ||
`${this.config.api}/auth/verify`, | ||
{ | ||
public_address: address, | ||
verifier: userInfo.aggregateVerifier || userInfo.verifier, | ||
verifier_id: userInfo.verifierId, | ||
account_type: type, | ||
...metadata, | ||
}, | ||
{}, | ||
{ useAPIKey: true } | ||
); | ||
jwtToken = (response as { token: string }).token; | ||
break; | ||
} | ||
case ACCOUNT_CATEGORY.NORMAL: | ||
@@ -483,0 +500,0 @@ case ACCOUNT_CATEGORY.THRESHOLD: |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4024787
12246
Updatedasync-mutex@^0.4.1