File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
packages/thirdweb/src/wallets/in-app/core/wallet Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff 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,
@@ -171,7 +176,12 @@ export function createInAppWallet(args: {
171176 account = connectedAccount ;
172177 adminAccount = _adminAccount ;
173178 chain = connectedChain ;
174- authToken = await connector . storage . getAuthCookie ( ) ;
179+ try {
180+ authToken = await connector . storage . getAuthCookie ( ) ;
181+ } catch ( error ) {
182+ console . error ( "Failed to retrieve auth token:" , error ) ;
183+ authToken = null ;
184+ }
175185 trackConnect ( {
176186 client : options . client ,
177187 ecosystem,
You can’t perform that action at this time.
0 commit comments