Skip to content

Commit 3b5db5b

Browse files
add ecosystem prop to getUser()
1 parent a07fc3a commit 3b5db5b

File tree

1 file changed

+4
-1
lines changed
  • packages/thirdweb/src/wallets/in-app/core/users

1 file changed

+4
-1
lines changed

packages/thirdweb/src/wallets/in-app/core/users/getUser.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { getThirdwebBaseUrl } from "../../../../utils/domains.js";
33
import { getClientFetch } from "../../../../utils/fetch.js";
44
import type { OneOf, Prettify } from "../../../../utils/type-utils.js";
55
import type { Profile } from "../authentication/types.js";
6+
import type { Ecosystem } from "../wallet/types.js";
67

78
export type GetUserResult = {
89
userId: string;
@@ -44,6 +45,7 @@ export async function getUser({
4445
email,
4546
phone,
4647
id,
48+
ecosystem,
4749
}: Prettify<
4850
{
4951
client: ThirdwebClient;
@@ -52,6 +54,7 @@ export async function getUser({
5254
email?: string;
5355
phone?: string;
5456
id?: string;
57+
ecosystem?: Ecosystem;
5558
}>
5659
>): Promise<GetUserResult | null> {
5760
if (!client.secretKey) {
@@ -82,7 +85,7 @@ export async function getUser({
8285
);
8386
}
8487

85-
const clientFetch = getClientFetch(client);
88+
const clientFetch = getClientFetch(client, ecosystem);
8689

8790
const res = await clientFetch(url.toString());
8891

0 commit comments

Comments
 (0)