Skip to content

Commit 4e5b8b4

Browse files
authored
Update in-app-core.ts
1 parent 33ccd92 commit 4e5b8b4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/thirdweb/src/wallets/in-app/core/wallet/in-app-core.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,12 @@ export function createInAppWallet(args: {
116116
account = connectedAccount;
117117
adminAccount = _adminAccount;
118118
chain = connectedChain;
119-
authToken = await connector.storage.getAuthCookie();
119+
try {
120+
authToken = await connector.storage.getAuthCookie();
121+
} catch (error) {
122+
console.error("Failed to retrieve auth token:", error);
123+
authToken = null;
124+
}
120125
trackConnect({
121126
client: options.client,
122127
ecosystem,

0 commit comments

Comments
 (0)