From b09fa761b4ac1ef87dc4b014932ad421115e337e Mon Sep 17 00:00:00 2001 From: Tim Shamilov Date: Thu, 24 Oct 2024 12:01:57 -0400 Subject: [PATCH] cleanup --- packages/agent/src/connect.ts | 4 ---- packages/api/src/web5.ts | 3 --- 2 files changed, 7 deletions(-) diff --git a/packages/agent/src/connect.ts b/packages/agent/src/connect.ts index 43c81def3..48a19ef43 100644 --- a/packages/agent/src/connect.ts +++ b/packages/agent/src/connect.ts @@ -138,7 +138,6 @@ async function initClient({ baseURL : connectServerUrl, endpoint : 'callback', }); - console.log('after callback endpoint'); // build the PAR request const request = await Oidc.createAuthRequest({ @@ -168,7 +167,6 @@ async function initClient({ kid : clientEcdhDid.document.verificationMethod![0].id, encryptionKey, }); - console.log('after requestobjecjtwe'); // Convert the encrypted Request Object to URLSearchParams for form encoding. const formEncodedRequest = new URLSearchParams({ @@ -187,7 +185,6 @@ async function initClient({ 'Content-Type': 'application/x-www-form-urlencoded', }, }); - console.log('after par'); if (!parResponse.ok) { throw new Error(`${parResponse.status}: ${parResponse.statusText}`); @@ -204,7 +201,6 @@ async function initClient({ 'encryption_key', Convert.uint8Array(encryptionKey).toBase64Url() ); - console.log('after generatedwalleturi'); // call user's callback so they can send the URI to the wallet as they see fit onWalletUriReady(generatedWalletUri.toString()); diff --git a/packages/api/src/web5.ts b/packages/api/src/web5.ts index 36ebc99eb..cd7e6f1ce 100644 --- a/packages/api/src/web5.ts +++ b/packages/api/src/web5.ts @@ -270,7 +270,6 @@ export class Web5 { // TODO: In the future, implement a way to re-connect an already connected identity and apply additional grants/protocols identity = connectedIdentity; } else if (isWalletConnect) { - console.log('IN walletConnect (non export) case'); if (sync === 'off') { // Currently we require sync to be enabled when using WalletConnect // This is to ensure a connected app is not in a disjointed state from any other clients/app using the connectedDid @@ -294,7 +293,6 @@ export class Web5 { tenant : agent.agentDid.uri, } }}); - console.log('does have an identity'); // Attempts to process the connected grants to be used by the delegateDID // If the process fails, we want to clean up the identity @@ -309,7 +307,6 @@ export class Web5 { } else if (isWalletExportedConnect) { throw new Error('Exported connect will be implemented in a separate PR'); } else { - console.log('IN else case'); // No connected identity found and no connectOptions provided, use local Identities // Query the Agent's DWN tenant for identity records. const identities = await userAgent.identity.list();