frontend client for gemstone. decentralised workplace app
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: just use inter service jwts, do proxying later

serenity bb158fe8 a1f4f43c

+15 -15
+15 -15
src/queries/initiate-handshake-to.ts
··· 24 24 if (!latticeUrlResult.ok) 25 25 return { ok: false, error: latticeUrlResult.error }; 26 26 27 - let jwt = ""; 28 - if (did.startsWith("did:web:localhost")) { 29 - if (__DEV__) 30 - jwt = await requestInterServiceJwtFromPds({ oauth, aud: did }); 31 - else 32 - return { 33 - ok: false, 34 - error: `Cannot initiate handshake to a lattice at localhost. Provided handshake target's DID was ${did}`, 35 - }; 36 - } else { 37 - // do proxy 38 - // for now we return error 39 - // FIXME: actually do service proxying. 40 - return { ok: false, error: "Service proxying not yet implemented" }; 41 - } 27 + // FIXME: actually do service proxying. 28 + const jwt = await requestInterServiceJwtFromPds({ oauth, aud: did }); 29 + // if (did.startsWith("did:web:localhost")) { 30 + // if (__DEV__) 31 + // jwt = await requestInterServiceJwtFromPds({ oauth, aud: did }); 32 + // else 33 + // return { 34 + // ok: false, 35 + // error: `Cannot initiate handshake to a lattice at localhost. Provided handshake target's DID was ${did}`, 36 + // }; 37 + // } else { 38 + // // do proxy 39 + // // for now we return error 40 + // return { ok: false, error: "Service proxying not yet implemented" }; 41 + // } 42 42 43 43 const latticeBaseUrl = latticeUrlResult.data.origin; 44 44