Skip to content
Merged
Prev Previous commit
Next Next commit
Omit address from user type
  • Loading branch information
adam-maj committed Aug 31, 2022
commit 7441383e7c6126cb360c1eb669fc28d9e461923a
4 changes: 2 additions & 2 deletions packages/auth/src/express/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export type ThirdwebAuthConfig = {
authUrl?: string;
callbacks?: {
login?: (address: string) => void;
user?: (address: string) => ThirdwebAuthUser;
user?: (address: string) => Omit<ThirdwebAuthUser, "address">;
};
};

Expand All @@ -18,7 +18,7 @@ export type ThirdwebAuthContext = {
domain: string;
callbacks?: {
login?: (address: string) => void;
user?: (address: string) => ThirdwebAuthUser;
user?: (address: string) => Omit<ThirdwebAuthUser, "address">;
};
};

Expand Down
4 changes: 2 additions & 2 deletions packages/auth/src/next/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type ThirdwebAuthConfig = {
domain: string;
callbacks?: {
login?: (address: string) => void;
user?: (address: string) => ThirdwebAuthUser;
user?: (address: string) => Omit<ThirdwebAuthUser, "address">;
};
};

Expand All @@ -16,7 +16,7 @@ export type ThirdwebAuthContext = {
domain: string;
callbacks?: {
login?: (address: string) => void;
user?: (address: string) => ThirdwebAuthUser;
user?: (address: string) => Omit<ThirdwebAuthUser, "address">;
};
};

Expand Down