We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33ccd92 commit 4e5b8b4Copy full SHA for 4e5b8b4
packages/thirdweb/src/wallets/in-app/core/wallet/in-app-core.ts
@@ -116,7 +116,12 @@ export function createInAppWallet(args: {
116
account = connectedAccount;
117
adminAccount = _adminAccount;
118
chain = connectedChain;
119
- authToken = await connector.storage.getAuthCookie();
+ try {
120
+ authToken = await connector.storage.getAuthCookie();
121
+ } catch (error) {
122
+ console.error("Failed to retrieve auth token:", error);
123
+ authToken = null;
124
+ }
125
trackConnect({
126
client: options.client,
127
ecosystem,
0 commit comments