diff --git a/packages/agent/src/connect.ts b/packages/agent/src/connect.ts index 41d22c164..e3f8e51cc 100644 --- a/packages/agent/src/connect.ts +++ b/packages/agent/src/connect.ts @@ -40,7 +40,7 @@ async function initClient({ // build the PAR request const request = await Oidc.createAuthRequest({ client_id : clientDid.uri, - scope : 'openid did:dht', + scope : 'openid did:jwk', // code_challenge : codeChallengeBase64Url, // code_challenge_method : 'S256', permissionRequests : permissionRequests, diff --git a/packages/agent/tests/connect.spec.ts b/packages/agent/tests/connect.spec.ts index 60cbe83fd..fb2929aed 100644 --- a/packages/agent/tests/connect.spec.ts +++ b/packages/agent/tests/connect.spec.ts @@ -203,7 +203,7 @@ describe('web5 connect', function () { const options = { client_id : clientEphemeralPortableDid.uri, - scope : 'openid did:dht', + scope : 'openid did:jwk', // code_challenge : Convert.uint8Array(codeChallenge).toBase64Url(), // code_challenge_method : 'S256' as const, permissionRequests : {} as any, // TODO: use a better mock once DWN stuff is in place,