@mezo-org/passport 0.4.0-dev.1 → 0.4.0-dev.4
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/src/api/auth.d.ts +43 -15
- package/dist/src/api/auth.d.ts.map +1 -1
- package/dist/src/api/auth.js +23 -26
- package/dist/src/api/auth.js.map +1 -1
- package/dist/src/hooks/constants.d.ts +2 -3
- package/dist/src/hooks/constants.d.ts.map +1 -1
- package/dist/src/hooks/constants.js +3 -4
- package/dist/src/hooks/constants.js.map +1 -1
- package/dist/src/hooks/index.d.ts +0 -3
- package/dist/src/hooks/index.d.ts.map +1 -1
- package/dist/src/hooks/index.js +0 -3
- package/dist/src/hooks/index.js.map +1 -1
- package/dist/src/hooks/useCreateAccount.d.ts +126 -72
- package/dist/src/hooks/useCreateAccount.d.ts.map +1 -1
- package/dist/src/hooks/useCreateAccount.js +1 -6
- package/dist/src/hooks/useCreateAccount.js.map +1 -1
- package/dist/src/hooks/useCreateSession.d.ts +45 -126
- package/dist/src/hooks/useCreateSession.d.ts.map +1 -1
- package/dist/src/hooks/useCreateSession.js +3 -11
- package/dist/src/hooks/useCreateSession.js.map +1 -1
- package/dist/src/hooks/useEnsureNoSessionAndFetchNonce.d.ts +5 -0
- package/dist/src/hooks/useEnsureNoSessionAndFetchNonce.d.ts.map +1 -0
- package/dist/src/hooks/useEnsureNoSessionAndFetchNonce.js +33 -0
- package/dist/src/hooks/useEnsureNoSessionAndFetchNonce.js.map +1 -0
- package/dist/src/hooks/useGetAccountByAddress.d.ts +3 -5
- package/dist/src/hooks/useGetAccountByAddress.d.ts.map +1 -1
- package/dist/src/hooks/useGetAccountByAddress.js +3 -4
- package/dist/src/hooks/useGetAccountByAddress.js.map +1 -1
- package/dist/src/hooks/useGetAccountByMezoId.d.ts +3 -5
- package/dist/src/hooks/useGetAccountByMezoId.d.ts.map +1 -1
- package/dist/src/hooks/useGetAccountByMezoId.js +3 -4
- package/dist/src/hooks/useGetAccountByMezoId.js.map +1 -1
- package/dist/src/hooks/useGetCurrentAccount.d.ts +3 -11
- package/dist/src/hooks/useGetCurrentAccount.d.ts.map +1 -1
- package/dist/src/hooks/useGetCurrentAccount.js +3 -3
- package/dist/src/hooks/useGetCurrentAccount.js.map +1 -1
- package/dist/src/hooks/useGetSession.d.ts +3 -20
- package/dist/src/hooks/useGetSession.d.ts.map +1 -1
- package/dist/src/hooks/useGetSession.js +2 -2
- package/dist/src/hooks/useGetSession.js.map +1 -1
- package/dist/src/hooks/useLinkAccount.d.ts +126 -72
- package/dist/src/hooks/useLinkAccount.d.ts.map +1 -1
- package/dist/src/hooks/useLinkAccount.js +2 -18
- package/dist/src/hooks/useLinkAccount.js.map +1 -1
- package/dist/src/hooks/useSignInWithDiscord.d.ts +53 -134
- package/dist/src/hooks/useSignInWithDiscord.d.ts.map +1 -1
- package/dist/src/hooks/useSignInWithDiscord.js +5 -19
- package/dist/src/hooks/useSignInWithDiscord.js.map +1 -1
- package/dist/src/hooks/useSignInWithWallet.d.ts +53 -134
- package/dist/src/hooks/useSignInWithWallet.d.ts.map +1 -1
- package/dist/src/hooks/useSignInWithWallet.js +7 -16
- package/dist/src/hooks/useSignInWithWallet.js.map +1 -1
- package/dist/src/hooks/useSignOut.d.ts.map +1 -1
- package/dist/src/hooks/useSignOut.js +4 -2
- package/dist/src/hooks/useSignOut.js.map +1 -1
- package/dist/src/hooks/useUpdateMezoId.d.ts +153 -99
- package/dist/src/hooks/useUpdateMezoId.d.ts.map +1 -1
- package/dist/src/hooks/useUpdateMezoId.js +1 -8
- package/dist/src/hooks/useUpdateMezoId.js.map +1 -1
- package/package.json +4 -2
- package/src/api/auth.ts +84 -52
- package/src/hooks/constants.ts +3 -4
- package/src/hooks/index.ts +0 -3
- package/src/hooks/useCreateAccount.ts +1 -6
- package/src/hooks/useCreateSession.ts +3 -10
- package/src/hooks/useEnsureNoSessionAndFetchNonce.ts +45 -0
- package/src/hooks/useGetAccountByAddress.ts +11 -5
- package/src/hooks/useGetAccountByMezoId.ts +11 -5
- package/src/hooks/useGetCurrentAccount.ts +10 -4
- package/src/hooks/useGetSession.ts +10 -3
- package/src/hooks/useLinkAccount.ts +2 -27
- package/src/hooks/useSignInWithDiscord.ts +5 -23
- package/src/hooks/useSignInWithWallet.ts +7 -19
- package/src/hooks/useSignOut.ts +4 -2
- package/src/hooks/useUpdateMezoId.ts +1 -8
package/dist/src/api/auth.d.ts
CHANGED
|
@@ -8,20 +8,39 @@ type AccountPublicData = {
|
|
|
8
8
|
btcAddress: string;
|
|
9
9
|
evmAddress: string;
|
|
10
10
|
};
|
|
11
|
-
type
|
|
11
|
+
type AuthUser = {
|
|
12
|
+
id: string;
|
|
12
13
|
app_metadata: {
|
|
13
14
|
provider: PassportIdentityProvider;
|
|
14
15
|
providers: PassportIdentityProvider[];
|
|
15
16
|
};
|
|
16
17
|
user_metadata: AccountPublicData;
|
|
17
18
|
};
|
|
19
|
+
type AuthProvider = "discord";
|
|
20
|
+
export type LinkedAccount = {
|
|
21
|
+
type: "wallet";
|
|
22
|
+
btcAddress?: string;
|
|
23
|
+
evmAddress: string;
|
|
24
|
+
} | {
|
|
25
|
+
type: AuthProvider;
|
|
26
|
+
name: string;
|
|
27
|
+
id: string;
|
|
28
|
+
avatarUrl: string;
|
|
29
|
+
};
|
|
30
|
+
type Account = {
|
|
31
|
+
mezoId: string;
|
|
32
|
+
hasModifiedMezoId: boolean;
|
|
33
|
+
linkedAccounts: LinkedAccount[];
|
|
34
|
+
authUser: AuthUser;
|
|
35
|
+
};
|
|
18
36
|
type Session = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
37
|
+
expiresIn: number;
|
|
38
|
+
expiresAt: number;
|
|
39
|
+
sessionLinks: {
|
|
40
|
+
_links: {
|
|
41
|
+
account: "/session/account";
|
|
42
|
+
};
|
|
43
|
+
};
|
|
25
44
|
};
|
|
26
45
|
type AuthenticationProviderRedirectResponse = {
|
|
27
46
|
redirectTo: string;
|
|
@@ -36,6 +55,14 @@ export type CreateSessionRequest = WalletAccountCredentials | {
|
|
|
36
55
|
};
|
|
37
56
|
export type LinkAccountRequest = CreateSessionRequest;
|
|
38
57
|
export type CreateAccountRequest = WalletAccountCredentials;
|
|
58
|
+
export type GetSessionResponse = Session | {
|
|
59
|
+
nonce: string;
|
|
60
|
+
};
|
|
61
|
+
export type GetCurrentAccountResponse = Partial<Account> | null;
|
|
62
|
+
export type GetAccountByMezoIdOrAddressResponse = {
|
|
63
|
+
mezoId?: string;
|
|
64
|
+
linkedAccounts?: LinkedAccount[];
|
|
65
|
+
};
|
|
39
66
|
export declare const API_ENDPOINTS_BY_ENV: {
|
|
40
67
|
mainnet: string;
|
|
41
68
|
testnet: string;
|
|
@@ -47,27 +74,28 @@ export declare class AuthApiClient {
|
|
|
47
74
|
* The request handler for the Passport API. It accepts an API endpoint and
|
|
48
75
|
* request options.
|
|
49
76
|
* @dev Generic type `D` is a type of returned object from the function
|
|
77
|
+
* @dev WARNING: This function hardcodes `credentials: "include"`, meaning
|
|
78
|
+
* cookies and authentication headers will be sent with every request. Ensure
|
|
79
|
+
* this is safe if you plan to use it in other contexts than auth api worker.
|
|
50
80
|
* @param endpoint - The API endpoint to request. Should start with
|
|
51
81
|
* forward slash ("/")
|
|
52
|
-
* @param
|
|
53
|
-
*
|
|
82
|
+
* @param options - The request options, the `RequestInit` type with
|
|
83
|
+
* additional type-safe properties
|
|
54
84
|
* @returns The promise of the API response
|
|
55
85
|
*/
|
|
56
86
|
protected handleRequest<D>(endpoint: `/${string}`, options: RequestHandlerOptions): Promise<D>;
|
|
57
|
-
getSession(code?: string): Promise<
|
|
58
|
-
nonce: string;
|
|
59
|
-
}>;
|
|
87
|
+
getSession(code?: string): Promise<GetSessionResponse>;
|
|
60
88
|
createSession(createSessionRequest: CreateSessionRequest): Promise<Session | {
|
|
61
89
|
redirectTo: string;
|
|
62
90
|
}>;
|
|
63
91
|
deleteSession(): Promise<{
|
|
64
92
|
message: string;
|
|
65
93
|
}>;
|
|
66
|
-
getCurrentAccount(): Promise<
|
|
67
|
-
getAccountByMezoIdOrAddress(mezoIdOrAddress: string): Promise<
|
|
94
|
+
getCurrentAccount(): Promise<GetCurrentAccountResponse>;
|
|
95
|
+
getAccountByMezoIdOrAddress(mezoIdOrAddress: string): Promise<GetAccountByMezoIdOrAddressResponse>;
|
|
68
96
|
linkAccount(linkAccountRequest: LinkAccountRequest): Promise<Account | AuthenticationProviderRedirectResponse>;
|
|
69
97
|
createAccount(createAccountRequest: CreateAccountRequest): Promise<Account>;
|
|
70
|
-
updateMezoId(newMezoId: string): Promise<Account>;
|
|
98
|
+
updateMezoId(newMezoId: string): Promise<Partial<Account> | null>;
|
|
71
99
|
}
|
|
72
100
|
export {};
|
|
73
101
|
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/api/auth.ts"],"names":[],"mappings":"AAAA,KAAK,qBAAqB,GAAG,IAAI,CAAC,WAAW,EAAE,aAAa,GAAG,MAAM,CAAC,GAAG;IACvE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;CACjD,CAAA;AACD,KAAK,wBAAwB,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;AAE9D,KAAK,iBAAiB,GAAG;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,KAAK,
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/api/auth.ts"],"names":[],"mappings":"AAAA,KAAK,qBAAqB,GAAG,IAAI,CAAC,WAAW,EAAE,aAAa,GAAG,MAAM,C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dist/src/api/auth.js
CHANGED
|
@@ -2,20 +2,22 @@ export const API_ENDPOINTS_BY_ENV = {
|
|
|
2
2
|
mainnet: "https://api.mezo.org",
|
|
3
3
|
testnet: "https://api.test.mezo.org",
|
|
4
4
|
};
|
|
5
|
-
const DEFAULT_API_ENDPOINT = API_ENDPOINTS_BY_ENV.mainnet;
|
|
6
5
|
export class AuthApiClient {
|
|
7
6
|
apiUrl;
|
|
8
7
|
constructor(apiUrl) {
|
|
9
|
-
this.apiUrl = apiUrl ??
|
|
8
|
+
this.apiUrl = apiUrl ?? API_ENDPOINTS_BY_ENV.mainnet;
|
|
10
9
|
}
|
|
11
10
|
/**
|
|
12
11
|
* The request handler for the Passport API. It accepts an API endpoint and
|
|
13
12
|
* request options.
|
|
14
13
|
* @dev Generic type `D` is a type of returned object from the function
|
|
14
|
+
* @dev WARNING: This function hardcodes `credentials: "include"`, meaning
|
|
15
|
+
* cookies and authentication headers will be sent with every request. Ensure
|
|
16
|
+
* this is safe if you plan to use it in other contexts than auth api worker.
|
|
15
17
|
* @param endpoint - The API endpoint to request. Should start with
|
|
16
18
|
* forward slash ("/")
|
|
17
|
-
* @param
|
|
18
|
-
*
|
|
19
|
+
* @param options - The request options, the `RequestInit` type with
|
|
20
|
+
* additional type-safe properties
|
|
19
21
|
* @returns The promise of the API response
|
|
20
22
|
*/
|
|
21
23
|
async handleRequest(endpoint, options) {
|
|
@@ -28,28 +30,23 @@ export class AuthApiClient {
|
|
|
28
30
|
Object.entries(queryParams)
|
|
29
31
|
.filter(([, value]) => value) // Remove falsy values
|
|
30
32
|
.forEach(([key, value]) => url.searchParams.append(key, value));
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
return data;
|
|
48
|
-
}
|
|
49
|
-
catch (error) {
|
|
50
|
-
const errorMessage = error instanceof Error ? error.message : "An error occurred";
|
|
51
|
-
throw new Error(errorMessage);
|
|
33
|
+
const response = await fetch(url, {
|
|
34
|
+
method,
|
|
35
|
+
credentials: "include",
|
|
36
|
+
headers: {
|
|
37
|
+
"Content-Type": "application/json",
|
|
38
|
+
...headers,
|
|
39
|
+
},
|
|
40
|
+
body: body ? JSON.stringify(body) : undefined,
|
|
41
|
+
...restOptions,
|
|
42
|
+
});
|
|
43
|
+
const data = await response.json();
|
|
44
|
+
if (!response.ok || data?.error) {
|
|
45
|
+
const error = data?.error ||
|
|
46
|
+
`An error occurred when handling API request: ${JSON.stringify(data)}`;
|
|
47
|
+
throw new Error(`Error [${response.status}]: ${error}`);
|
|
52
48
|
}
|
|
49
|
+
return data;
|
|
53
50
|
}
|
|
54
51
|
async getSession(code) {
|
|
55
52
|
const data = await this.handleRequest("/session", {
|
|
@@ -100,7 +97,7 @@ export class AuthApiClient {
|
|
|
100
97
|
async updateMezoId(newMezoId) {
|
|
101
98
|
const data = await this.handleRequest("/session/account", {
|
|
102
99
|
method: "PATCH",
|
|
103
|
-
body: { newMezoId },
|
|
100
|
+
body: { mezoId: newMezoId },
|
|
104
101
|
});
|
|
105
102
|
return data;
|
|
106
103
|
}
|
package/dist/src/api/auth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/api/auth.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/api/auth.ts"],"names":[],"mappings":"AAgFA,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,OAAO,EAAE,sBAAsB;IAC/B,OAAO,EAAE,2BAA2B;CACrC,CAAA;AAED,MAAM,OAAO,aAAa;IAChB,MAAM,CAAQ;IAEtB,YAAY,MAAe;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,oBAAoB,CAAC,O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,IAAI,EAAE,kBAAkB;SACzB,CAAC,CAAA;QAEF,OAAO,IAAI,CAAA;IACb,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,oBAA0C;QAC5D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,aAAa,CAAU,WAAW,EAAE;YAC1D,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,oBAAoB;SAC3B,CAAC,CAAA;QAEF,OAAO,IAAI,CAAA;IACb,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,SAAiB;QAClC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,aAAa,CACnC,kBAAkB,EAClB;YACE,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;SAC5B,CACF,CAAA;QAED,OAAO,IAAI,CAAA;IACb,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/hooks/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/hooks/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;CAItB,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export const QUERY_KEYS = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
CURRENT_ACCOUNT: "getCurrentAccount",
|
|
2
|
+
ACCOUNT: "account",
|
|
3
|
+
SESSION: "session",
|
|
4
|
+
CURRENT: "current",
|
|
6
5
|
};
|
|
7
6
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/hooks/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/hooks/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACnB,CAAA"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
export { useBitcoinAccount, useSendBitcoin, useSendTransaction, useSubscribeToConnectedToUnsupportedBitcoinAddress, useSubscribeToConnectorEvent, useSubscribeToWalletNetworkDoesNotMatchProviderChain, } from "@mezo-org/orangekit";
|
|
2
|
-
export * from "./constants";
|
|
3
|
-
export * from "./useAuthApiClient";
|
|
4
2
|
export * from "./useCreateAccount";
|
|
5
3
|
export * from "./useGetAccountByAddress";
|
|
6
4
|
export * from "./useGetAccountByMezoId";
|
|
7
5
|
export * from "./useGetCurrentAccount";
|
|
8
6
|
export * from "./useGetSession";
|
|
9
7
|
export * from "./useLinkAccount";
|
|
10
|
-
export * from "./usePassportContext";
|
|
11
8
|
export * from "./useSignInWithDiscord";
|
|
12
9
|
export * from "./useSignInWithWallet";
|
|
13
10
|
export * from "./useSignOut";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,kDAAkD,EAClD,4BAA4B,EAC5B,oDAAoD,GACrD,MAAM,qBAAqB,CAAA;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,kDAAkD,EAClD,4BAA4B,EAC5B,oDAAoD,GACrD,MAAM,qBAAqB,CAAA;AAC5B,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA"}
|
package/dist/src/hooks/index.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
export { useBitcoinAccount, useSendBitcoin, useSendTransaction, useSubscribeToConnectedToUnsupportedBitcoinAddress, useSubscribeToConnectorEvent, useSubscribeToWalletNetworkDoesNotMatchProviderChain, } from "@mezo-org/orangekit";
|
|
2
|
-
export * from "./constants";
|
|
3
|
-
export * from "./useAuthApiClient";
|
|
4
2
|
export * from "./useCreateAccount";
|
|
5
3
|
export * from "./useGetAccountByAddress";
|
|
6
4
|
export * from "./useGetAccountByMezoId";
|
|
7
5
|
export * from "./useGetCurrentAccount";
|
|
8
6
|
export * from "./useGetSession";
|
|
9
7
|
export * from "./useLinkAccount";
|
|
10
|
-
export * from "./usePassportContext";
|
|
11
8
|
export * from "./useSignInWithDiscord";
|
|
12
9
|
export * from "./useSignInWithWallet";
|
|
13
10
|
export * from "./useSignOut";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,kDAAkD,EAClD,4BAA4B,EAC5B,oDAAoD,GACrD,MAAM,qBAAqB,CAAA;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,kDAAkD,EAClD,4BAA4B,EAC5B,oDAAoD,GACrD,MAAM,qBAAqB,CAAA;AAC5B,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA"}
|
|
@@ -14,14 +14,20 @@ export declare function useCreateAccount(useMutationOptions?: {}): {
|
|
|
14
14
|
isPaused: boolean;
|
|
15
15
|
submittedAt: number;
|
|
16
16
|
createAccount: import("@tanstack/react-query").UseMutateFunction<{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
mezoId: string;
|
|
18
|
+
hasModifiedMezoId: boolean;
|
|
19
|
+
linkedAccounts: import("../api/auth").LinkedAccount[];
|
|
20
|
+
authUser: {
|
|
21
|
+
id: string;
|
|
22
|
+
app_metadata: {
|
|
23
|
+
provider: "wallet" | "discord" | "email";
|
|
24
|
+
providers: ("wallet" | "discord" | "email")[];
|
|
25
|
+
};
|
|
26
|
+
user_metadata: {
|
|
27
|
+
mezoId?: string | undefined;
|
|
28
|
+
btcAddress: string;
|
|
29
|
+
evmAddress: string;
|
|
30
|
+
};
|
|
25
31
|
};
|
|
26
32
|
}, Error, {
|
|
27
33
|
type: "wallet";
|
|
@@ -29,14 +35,20 @@ export declare function useCreateAccount(useMutationOptions?: {}): {
|
|
|
29
35
|
signature: string;
|
|
30
36
|
}, unknown>;
|
|
31
37
|
createAccountAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
mezoId: string;
|
|
39
|
+
hasModifiedMezoId: boolean;
|
|
40
|
+
linkedAccounts: import("../api/auth").LinkedAccount[];
|
|
41
|
+
authUser: {
|
|
42
|
+
id: string;
|
|
43
|
+
app_metadata: {
|
|
44
|
+
provider: "wallet" | "discord" | "email";
|
|
45
|
+
providers: ("wallet" | "discord" | "email")[];
|
|
46
|
+
};
|
|
47
|
+
user_metadata: {
|
|
48
|
+
mezoId?: string | undefined;
|
|
49
|
+
btcAddress: string;
|
|
50
|
+
evmAddress: string;
|
|
51
|
+
};
|
|
40
52
|
};
|
|
41
53
|
}, Error, {
|
|
42
54
|
type: "wallet";
|
|
@@ -63,14 +75,20 @@ export declare function useCreateAccount(useMutationOptions?: {}): {
|
|
|
63
75
|
isPaused: boolean;
|
|
64
76
|
submittedAt: number;
|
|
65
77
|
createAccount: import("@tanstack/react-query").UseMutateFunction<{
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
78
|
+
mezoId: string;
|
|
79
|
+
hasModifiedMezoId: boolean;
|
|
80
|
+
linkedAccounts: import("../api/auth").LinkedAccount[];
|
|
81
|
+
authUser: {
|
|
82
|
+
id: string;
|
|
83
|
+
app_metadata: {
|
|
84
|
+
provider: "wallet" | "discord" | "email";
|
|
85
|
+
providers: ("wallet" | "discord" | "email")[];
|
|
86
|
+
};
|
|
87
|
+
user_metadata: {
|
|
88
|
+
mezoId?: string | undefined;
|
|
89
|
+
btcAddress: string;
|
|
90
|
+
evmAddress: string;
|
|
91
|
+
};
|
|
74
92
|
};
|
|
75
93
|
}, Error, {
|
|
76
94
|
type: "wallet";
|
|
@@ -78,14 +96,20 @@ export declare function useCreateAccount(useMutationOptions?: {}): {
|
|
|
78
96
|
signature: string;
|
|
79
97
|
}, unknown>;
|
|
80
98
|
createAccountAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
99
|
+
mezoId: string;
|
|
100
|
+
hasModifiedMezoId: boolean;
|
|
101
|
+
linkedAccounts: import("../api/auth").LinkedAccount[];
|
|
102
|
+
authUser: {
|
|
103
|
+
id: string;
|
|
104
|
+
app_metadata: {
|
|
105
|
+
provider: "wallet" | "discord" | "email";
|
|
106
|
+
providers: ("wallet" | "discord" | "email")[];
|
|
107
|
+
};
|
|
108
|
+
user_metadata: {
|
|
109
|
+
mezoId?: string | undefined;
|
|
110
|
+
btcAddress: string;
|
|
111
|
+
evmAddress: string;
|
|
112
|
+
};
|
|
89
113
|
};
|
|
90
114
|
}, Error, {
|
|
91
115
|
type: "wallet";
|
|
@@ -112,14 +136,20 @@ export declare function useCreateAccount(useMutationOptions?: {}): {
|
|
|
112
136
|
isPaused: boolean;
|
|
113
137
|
submittedAt: number;
|
|
114
138
|
createAccount: import("@tanstack/react-query").UseMutateFunction<{
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
139
|
+
mezoId: string;
|
|
140
|
+
hasModifiedMezoId: boolean;
|
|
141
|
+
linkedAccounts: import("../api/auth").LinkedAccount[];
|
|
142
|
+
authUser: {
|
|
143
|
+
id: string;
|
|
144
|
+
app_metadata: {
|
|
145
|
+
provider: "wallet" | "discord" | "email";
|
|
146
|
+
providers: ("wallet" | "discord" | "email")[];
|
|
147
|
+
};
|
|
148
|
+
user_metadata: {
|
|
149
|
+
mezoId?: string | undefined;
|
|
150
|
+
btcAddress: string;
|
|
151
|
+
evmAddress: string;
|
|
152
|
+
};
|
|
123
153
|
};
|
|
124
154
|
}, Error, {
|
|
125
155
|
type: "wallet";
|
|
@@ -127,14 +157,20 @@ export declare function useCreateAccount(useMutationOptions?: {}): {
|
|
|
127
157
|
signature: string;
|
|
128
158
|
}, unknown>;
|
|
129
159
|
createAccountAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
160
|
+
mezoId: string;
|
|
161
|
+
hasModifiedMezoId: boolean;
|
|
162
|
+
linkedAccounts: import("../api/auth").LinkedAccount[];
|
|
163
|
+
authUser: {
|
|
164
|
+
id: string;
|
|
165
|
+
app_metadata: {
|
|
166
|
+
provider: "wallet" | "discord" | "email";
|
|
167
|
+
providers: ("wallet" | "discord" | "email")[];
|
|
168
|
+
};
|
|
169
|
+
user_metadata: {
|
|
170
|
+
mezoId?: string | undefined;
|
|
171
|
+
btcAddress: string;
|
|
172
|
+
evmAddress: string;
|
|
173
|
+
};
|
|
138
174
|
};
|
|
139
175
|
}, Error, {
|
|
140
176
|
type: "wallet";
|
|
@@ -143,14 +179,20 @@ export declare function useCreateAccount(useMutationOptions?: {}): {
|
|
|
143
179
|
}, unknown>;
|
|
144
180
|
} | {
|
|
145
181
|
data: {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
182
|
+
mezoId: string;
|
|
183
|
+
hasModifiedMezoId: boolean;
|
|
184
|
+
linkedAccounts: import("../api/auth").LinkedAccount[];
|
|
185
|
+
authUser: {
|
|
186
|
+
id: string;
|
|
187
|
+
app_metadata: {
|
|
188
|
+
provider: "wallet" | "discord" | "email";
|
|
189
|
+
providers: ("wallet" | "discord" | "email")[];
|
|
190
|
+
};
|
|
191
|
+
user_metadata: {
|
|
192
|
+
mezoId?: string | undefined;
|
|
193
|
+
btcAddress: string;
|
|
194
|
+
evmAddress: string;
|
|
195
|
+
};
|
|
154
196
|
};
|
|
155
197
|
};
|
|
156
198
|
error: null;
|
|
@@ -171,14 +213,20 @@ export declare function useCreateAccount(useMutationOptions?: {}): {
|
|
|
171
213
|
isPaused: boolean;
|
|
172
214
|
submittedAt: number;
|
|
173
215
|
createAccount: import("@tanstack/react-query").UseMutateFunction<{
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
216
|
+
mezoId: string;
|
|
217
|
+
hasModifiedMezoId: boolean;
|
|
218
|
+
linkedAccounts: import("../api/auth").LinkedAccount[];
|
|
219
|
+
authUser: {
|
|
220
|
+
id: string;
|
|
221
|
+
app_metadata: {
|
|
222
|
+
provider: "wallet" | "discord" | "email";
|
|
223
|
+
providers: ("wallet" | "discord" | "email")[];
|
|
224
|
+
};
|
|
225
|
+
user_metadata: {
|
|
226
|
+
mezoId?: string | undefined;
|
|
227
|
+
btcAddress: string;
|
|
228
|
+
evmAddress: string;
|
|
229
|
+
};
|
|
182
230
|
};
|
|
183
231
|
}, Error, {
|
|
184
232
|
type: "wallet";
|
|
@@ -186,14 +234,20 @@ export declare function useCreateAccount(useMutationOptions?: {}): {
|
|
|
186
234
|
signature: string;
|
|
187
235
|
}, unknown>;
|
|
188
236
|
createAccountAsync: import("@tanstack/react-query").UseMutateAsyncFunction<{
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
237
|
+
mezoId: string;
|
|
238
|
+
hasModifiedMezoId: boolean;
|
|
239
|
+
linkedAccounts: import("../api/auth").LinkedAccount[];
|
|
240
|
+
authUser: {
|
|
241
|
+
id: string;
|
|
242
|
+
app_metadata: {
|
|
243
|
+
provider: "wallet" | "discord" | "email";
|
|
244
|
+
providers: ("wallet" | "discord" | "email")[];
|
|
245
|
+
};
|
|
246
|
+
user_metadata: {
|
|
247
|
+
mezoId?: string | undefined;
|
|
248
|
+
btcAddress: string;
|
|
249
|
+
evmAddress: string;
|
|
250
|
+
};
|
|
197
251
|
};
|
|
198
252
|
}, Error, {
|
|
199
253
|
type: "wallet";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateAccount.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCreateAccount.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,CAAC,kBAAkB,KAAK
|
|
1
|
+
{"version":3,"file":"useCreateAccount.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCreateAccount.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,CAAC,kBAAkB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBvD"}
|
|
@@ -8,12 +8,7 @@ export function useCreateAccount(useMutationOptions = {}) {
|
|
|
8
8
|
mutationFn: (createAccountRequest) => authApiClient.createAccount(createAccountRequest),
|
|
9
9
|
onSuccess: () => {
|
|
10
10
|
queryClient.resetQueries({
|
|
11
|
-
queryKey: [QUERY_KEYS.
|
|
12
|
-
exact: false,
|
|
13
|
-
});
|
|
14
|
-
queryClient.resetQueries({
|
|
15
|
-
queryKey: [QUERY_KEYS.ACCOUNT_BY_MEZO_ID],
|
|
16
|
-
exact: false,
|
|
11
|
+
queryKey: [QUERY_KEYS.ACCOUNT],
|
|
17
12
|
});
|
|
18
13
|
},
|
|
19
14
|
...useMutationOptions,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateAccount.js","sourceRoot":"","sources":["../../../src/hooks/useCreateAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAGxC,MAAM,UAAU,gBAAgB,CAAC,kBAAkB,GAAG,EAAE;IACtD,MAAM,WAAW,GA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