Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
shamilovtim committed Oct 24, 2024
1 parent 58bb0c9 commit b09fa76
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions packages/agent/src/connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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({
Expand All @@ -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}`);
Expand All @@ -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());
Expand Down
3 changes: 0 additions & 3 deletions packages/api/src/web5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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();
Expand Down

0 comments on commit b09fa76

Please sign in to comment.