anymal-protocol 1.0.42 → 1.0.43
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ declare function useVerifyAccount(): (pid: string, campaignId: string, dbAuthTok
|
|
|
5
5
|
|
|
6
6
|
declare function useVerifyWeb3AuthSession(): (idToken: string, publicKey: string, authServiceBaseUrl: string) => Promise<any>;
|
|
7
7
|
|
|
8
|
-
declare function useCreateWeb3Account(): (idToken: string, publicKey: string, authServiceBaseUrl: string) => Promise<any>;
|
|
8
|
+
declare function useCreateWeb3Account(): (idToken: string, publicKey: string, userPid: string, authServiceBaseUrl: string) => Promise<any>;
|
|
9
9
|
|
|
10
10
|
declare function useFetchUserData(): (dbAuthToken: string, endpoint: string) => Promise<any>;
|
|
11
11
|
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ declare function useVerifyAccount(): (pid: string, campaignId: string, dbAuthTok
|
|
|
5
5
|
|
|
6
6
|
declare function useVerifyWeb3AuthSession(): (idToken: string, publicKey: string, authServiceBaseUrl: string) => Promise<any>;
|
|
7
7
|
|
|
8
|
-
declare function useCreateWeb3Account(): (idToken: string, publicKey: string, authServiceBaseUrl: string) => Promise<any>;
|
|
8
|
+
declare function useCreateWeb3Account(): (idToken: string, publicKey: string, userPid: string, authServiceBaseUrl: string) => Promise<any>;
|
|
9
9
|
|
|
10
10
|
declare function useFetchUserData(): (dbAuthToken: string, endpoint: string) => Promise<any>;
|
|
11
11
|
|
package/dist/index.js
CHANGED
|
@@ -135,7 +135,7 @@ function useVerifyWeb3AuthSession() {
|
|
|
135
135
|
var import_react3 = require("react");
|
|
136
136
|
function useCreateWeb3Account() {
|
|
137
137
|
return (0, import_react3.useCallback)(
|
|
138
|
-
async (idToken, publicKey, authServiceBaseUrl) => {
|
|
138
|
+
async (idToken, publicKey, userPid, authServiceBaseUrl) => {
|
|
139
139
|
try {
|
|
140
140
|
const response = await fetch(`${authServiceBaseUrl}/create-account`, {
|
|
141
141
|
method: "POST",
|
|
@@ -143,7 +143,7 @@ function useCreateWeb3Account() {
|
|
|
143
143
|
"Content-Type": "application/json",
|
|
144
144
|
Authorization: "Bearer " + idToken
|
|
145
145
|
},
|
|
146
|
-
body: JSON.stringify({ appPubKey: publicKey })
|
|
146
|
+
body: JSON.stringify({ appPubKey: publicKey, pid: userPid })
|
|
147
147
|
});
|
|
148
148
|
return await response.json();
|
|
149
149
|
} catch (error) {
|
package/dist/index.mjs
CHANGED
|
@@ -90,7 +90,7 @@ function useVerifyWeb3AuthSession() {
|
|
|
90
90
|
import { useCallback as useCallback3 } from "react";
|
|
91
91
|
function useCreateWeb3Account() {
|
|
92
92
|
return useCallback3(
|
|
93
|
-
async (idToken, publicKey, authServiceBaseUrl) => {
|
|
93
|
+
async (idToken, publicKey, userPid, authServiceBaseUrl) => {
|
|
94
94
|
try {
|
|
95
95
|
const response = await fetch(`${authServiceBaseUrl}/create-account`, {
|
|
96
96
|
method: "POST",
|
|
@@ -98,7 +98,7 @@ function useCreateWeb3Account() {
|
|
|
98
98
|
"Content-Type": "application/json",
|
|
99
99
|
Authorization: "Bearer " + idToken
|
|
100
100
|
},
|
|
101
|
-
body: JSON.stringify({ appPubKey: publicKey })
|
|
101
|
+
body: JSON.stringify({ appPubKey: publicKey, pid: userPid })
|
|
102
102
|
});
|
|
103
103
|
return await response.json();
|
|
104
104
|
} catch (error) {
|
package/package.json
CHANGED