@volr/react 0.1.123 → 0.1.124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +12 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -19595,7 +19595,8 @@ async function enrollPasskey(params) {
|
|
|
19595
19595
|
credentialId
|
|
19596
19596
|
},
|
|
19597
19597
|
address,
|
|
19598
|
-
platform
|
|
19598
|
+
platform,
|
|
19599
|
+
rpId
|
|
19599
19600
|
});
|
|
19600
19601
|
return {
|
|
19601
19602
|
credentialId,
|
|
@@ -19783,7 +19784,15 @@ function createBackendMpcTransport(params) {
|
|
|
19783
19784
|
|
|
19784
19785
|
// src/headless/wallet-provider.ts
|
|
19785
19786
|
async function registerWalletProvider(params) {
|
|
19786
|
-
const {
|
|
19787
|
+
const {
|
|
19788
|
+
client,
|
|
19789
|
+
keyStorageType,
|
|
19790
|
+
address,
|
|
19791
|
+
rpId = typeof window !== "undefined" ? window.location.hostname : "localhost",
|
|
19792
|
+
credentialId,
|
|
19793
|
+
blobUrl,
|
|
19794
|
+
prfInput
|
|
19795
|
+
} = params;
|
|
19787
19796
|
if (!keyStorageType) {
|
|
19788
19797
|
throw new Error("keyStorageType is required");
|
|
19789
19798
|
}
|
|
@@ -19804,6 +19813,7 @@ async function registerWalletProvider(params) {
|
|
|
19804
19813
|
await client.post("/wallet/provider/register", {
|
|
19805
19814
|
keyStorageType,
|
|
19806
19815
|
address,
|
|
19816
|
+
rpId,
|
|
19807
19817
|
...keyStorageType === "passkey" && {
|
|
19808
19818
|
credentialId,
|
|
19809
19819
|
blobUrl,
|